<?php

/**
 * Mobile Module Routes
 *
 * This file is automatically loaded by ModuleLoader.
 *
 * @var \CodeIgniter\Router\RouteCollection $routes
 */

$routes->group('api/mobile', [
    'namespace' => 'App\Modules\Mobile\Controllers',
], function ($routes) {
    $routes->post('login', 'RegistrationController::login');
    $routes->post('register/nisn', 'RegistrationController::checkNisn');
    $routes->post('register/complete', 'RegistrationController::complete');
    $routes->post('forgot-pin', 'RegistrationController::forgotPin');
    $routes->post('checkin-qr', 'CheckinController::checkinQr');
    $routes->post('checkin-masuk-pulang', 'CheckinController::checkinMasukPulang');
    $routes->get('attendance/today', 'CheckinController::todayStatus');
    $routes->get('student/face-photo', 'FacePhotoController::show');
});

