ldc-web/routes/api.php
Vincent BRIDIER 9d5b54a5ea - SAML OK
- TOTP OK
- STATUS Checker (to do : code)
- EDL Web edit
2020-04-14 15:58:24 +02:00

20 lines
598 B
PHP

<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::post('/status-checker', 'API\StatusCheckerController@index');