safeLoad(); } error_reporting(E_ALL); use FrameworkX\App; use Middlewares\HmacAuthMiddleware; use Middlewares\JWTAuthMiddleware; $app = new App(); $authHmac = new HmacAuthMiddleware(); $authJwt = new JWTAuthMiddleware(); $app->get('/hmachelloworld', $authHmac,\Controllers\HelloController::class); $app->get('/jwthelloworld', $authJwt,\Controllers\HelloController::class); $app->post('/login', \Controllers\LoginController::class); $app->post('/register', \Controllers\RegisterController::class); $app->get('/category', \Controllers\CategoryController::class); $app->post('/category', \Controllers\CategoryController::class); $app->post('/category/delete', \Controllers\CategoryController::class); $app->post('/category/add-product', \Controllers\CategoryController::class); $app->run();