Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : Category.php
<?php

/**
 * @copyright © TMS-Plugins. All rights reserved.
 * @licence   See COPYING.md for license details.
 */

namespace AmeliaBooking\Infrastructure\Routes\Bookable;

use AmeliaBooking\Application\Controller\Bookable\Category\AddCategoryController;
use AmeliaBooking\Application\Controller\Bookable\Category\DeleteCategoryController;
use AmeliaBooking\Application\Controller\Bookable\Category\GetCategoriesController;
use AmeliaBooking\Application\Controller\Bookable\Category\GetCategoryController;
use AmeliaBooking\Application\Controller\Bookable\Category\UpdateCategoriesPositionsController;
use AmeliaBooking\Application\Controller\Bookable\Category\UpdateCategoryController;
use Slim\App;

/**
 * Class Category
 *
 * @package AmeliaBooking\Infrastructure\Routes\Bookable
 */
class Category
{
    /**
     * @param App $app
     */
    public static function routes(App $app)
    {
        $app->get('/categories', GetCategoriesController::class);

        $app->get('/categories/{id:[0-9]+}', GetCategoryController::class);

        $app->post('/categories', AddCategoryController::class);

        $app->post('/categories/delete/{id:[0-9]+}', DeleteCategoryController::class);

        $app->post('/categories/{id:[0-9]+}', UpdateCategoryController::class);

        $app->post('/categories/positions', UpdateCategoriesPositionsController::class);
    }
}
© 2026 GrazzMean-Shell