Skip to content

A self-hosted media server and file management system

Change auth check to get

aminnausin4c64f494716b
diff --git a/routes/api.php b/routes/api.php
index 1b0ecedf..742dedb1 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -26,7 +26,7 @@ Route::post('/register', [AuthController::class, 'register']); // Deprecate
// protected
Route::group(['middleware' => ['auth:sanctum']], function () {
- Route::post('/auth', [AuthController::class, 'authenticate']); // New
+ Route::get('/auth', [AuthController::class, 'authenticate']); // New
Route::post('/logout', [AuthController::class, 'logout']); // Deprecate
Route::resource('/records', RecordController::class);
Route::resource('/profile', ProfileController::class);