'App\Http\Controllers\Mobile', ], ], static function (): void { Route::post('/register', [MobileRegisterController::class, 'register'])->name('register'); Route::post('/login', [MobileRegisterController::class, 'login'])->name('login'); Route::group([ 'middleware' => ['auth:sanctum'], 'prefix' => 'profile', ], static function () { Route::get('/index', [MobileProfileController::class, 'index']); Route::post('/addWeight', [MobileProfileController::class, 'addWeight']); Route::post('/addCircumference', [MobileProfileController::class, 'addCircumference']); }); }); // Route::post('/register', [MobileRegisterController::class, 'register']); // Route::post('/login', [MobileRegisterController::class, 'login']); // Route::middleware('auth:sanctum')->get('/profile/index', [MobileProfileController::class, 'index']); // Route::middleware('auth:sanctum')->post('/profile/addWeight', [MobileProfileController::class, 'addWeight']); // Route::middleware('auth:sanctum')->post('/profile/addCircumference', [MobileProfileController::class, 'addCircumference']);