18 lines
461 B
PHP
18 lines
461 B
PHP
<?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');
|
|
});
|