2026-03-05 14:37:36 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Auth Module Routes
|
|
|
|
|
*
|
|
|
|
|
* This file is automatically loaded by ModuleLoader.
|
|
|
|
|
* Define your authentication routes here.
|
|
|
|
|
*
|
|
|
|
|
* @var RouteCollection $routes
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Auth routes (session-based)
|
|
|
|
|
$routes->group('api/auth', ['namespace' => 'App\Modules\Auth\Controllers'], function ($routes) {
|
|
|
|
|
$routes->post('login', 'AuthController::login');
|
|
|
|
|
$routes->post('logout', 'AuthController::logout');
|
|
|
|
|
$routes->get('me', 'AuthController::me');
|
2026-03-06 16:07:10 +07:00
|
|
|
$routes->post('change-password', 'AuthController::changePassword');
|
2026-03-05 14:37:36 +07:00
|
|
|
});
|