<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\AbsensiController;

// Ini rute bawaan (bisa dihapus atau dibiarkan)
Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:sanctum');

// === TAMBAHKAN INI ===
Route::get('/device/status', [AbsensiController::class, 'checkDeviceStatus']);
Route::post('/absensi/record', [AbsensiController::class, 'recordAttendance']);
Route::post('/siswa/registrasi', [AbsensiController::class, 'registerCard']);
