mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
38 lines
898 B
PHP
38 lines
898 B
PHP
<?php
|
|
|
|
use App\Http\Resources\TeamCollection;
|
|
use App\Models\Team;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/unauthenticated', function () {
|
|
return response()->json([
|
|
'message' => 'Bearer missing or invalid',
|
|
], 401);
|
|
});
|
|
|
|
Route::prefix('be')->group(function () {
|
|
Route::get('/test', function () {
|
|
$subtask = \App\Models\SubTask::with('mastertask')->find(1);
|
|
|
|
dd($subtask);
|
|
|
|
});
|
|
});
|
|
|
|
|