Files
presensi/app/Modules/Auth/Routes.php
mwpn 132b040418 feat: tambah profil akun dan ganti password
Tambahkan halaman /dashboard/profile beserta API ganti password untuk user yang sedang login.
Rapikan AuthSeeder agar idempotent dan bisa ambil admin email/password dari env.
2026-03-06 16:07:10 +07:00

19 lines
533 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');
$routes->post('change-password', 'AuthController::changePassword');
});