Deploy on 2026-06-05 15:59:38
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user