mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
no message
This commit is contained in:
1 parent
fe982a67d4
commit
3ef1279614
2 files changed
+4
-4
No files matched your search
@@ -15,7 +15,7 @@ class Authenticate extends Middleware
|
|||||||
protected function redirectTo($request)
|
protected function redirectTo($request)
|
||||||
{
|
{
|
||||||
if (! $request->expectsJson()) {
|
if (! $request->expectsJson()) {
|
||||||
return '/unauthenticated';
|
return '/be/unauthenticated';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-3
@@ -19,13 +19,13 @@ Route::get('/', function () {
|
|||||||
return view('welcome');
|
return view('welcome');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/unauthenticated', function () {
|
Route::prefix('be')->group(function () {
|
||||||
|
Route::get('/unauthenticated', function () {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'message' => 'Bearer missing or invalid',
|
'message' => 'Bearer missing or invalid',
|
||||||
], 401);
|
], 401);
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::prefix('be')->group(function () {
|
|
||||||
Route::get('/test', function () {
|
Route::get('/test', function () {
|
||||||
$subtask = \App\Models\SubTask::with('mastertask')->find(1);
|
$subtask = \App\Models\SubTask::with('mastertask')->find(1);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user