Deploy on 2026-06-05 15:59:38

This commit is contained in:
Hamza-Ayed
2026-06-05 15:59:38 +03:00
parent 669254ccd2
commit c0da60069f
2 changed files with 17 additions and 5 deletions

View File

@@ -77,13 +77,19 @@ $app->router->group([
// Settings
$r->get('/settings', [SettingsController::class, 'index']);
$r->post('/settings/save', [SettingsController::class, 'save']);
// Language switch (no CSRF needed for GET)
$r->get('/lang/{lang}', [SettingsController::class, 'switchLang']);
$r->post('/settings/test-telegram', [SettingsController::class, 'testTelegram']);
});
// Logout endpoint
$router->get('/logout', [AuthController::class, 'logout']);
// Language switch (no middleware needed for GET, but needs session)
$router->group([
'prefix' => '/admin',
'middleware' => [Authenticate::class]
], function($r) {
$r->get('/lang/{lang}', [SettingsController::class, 'switchLang']);
});
});
// API Routes (no CSRF, uses JWT)