mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
45 lines
1.1 KiB
PHP
45 lines
1.1 KiB
PHP
<?php
|
|
|
|
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 () {
|
|
});
|
|
|
|
Route::prefix('be')->group(function () {
|
|
Route::get('/unauthenticated', function () {
|
|
return response()->json([
|
|
'message' => 'Bearer missing or invalid',
|
|
], 401);
|
|
});
|
|
|
|
Route::get('/test', function () {
|
|
$subtask = \App\Models\SubTask::with('mastertask')->find(1);
|
|
|
|
dd($subtask);
|
|
});
|
|
|
|
Route::get('/run-office365', function () {
|
|
\Artisan::call('office365:sync');
|
|
\Artisan::call('office365:finish-subtasks');
|
|
});
|
|
|
|
Route::get('/healthcheck', function () {
|
|
return response()->json([
|
|
'message' => 'All good',
|
|
], 200);
|
|
});
|
|
});
|
|
|
|
|