-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.php
27 lines (23 loc) · 1022 Bytes
/
api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
use App\Http\Controllers\AuthController;
use App\Http\Controllers\dataCoincidenceController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/
Route::middleware('api')->prefix('auth')->group( function () {
Route::post('login', [AuthController::class, 'login']);
Route::post('logout', [AuthController::class, 'logout']);
Route::post('refresh', [AuthController::class, 'refresh']);
Route::post('me', [AuthController::class, 'me']);
});
Route::post('data', [dataCoincidenceController::class, 'getCoincidenceFromDictionary']);
Route::get('history', [dataCoincidenceController::class, 'getHistory']);