New route, middleware, token table, filters for query to allow third party to access api

This commit is contained in:
Dillon
2023-04-06 22:57:50 +08:00
parent 069c3cea35
commit 43cd6f35be
10 changed files with 200 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => 'apipub', 'prefix' => 'v1', 'as' => 'apipub.'], function () {
Route::group(['middleware' => 'token.check'], function () {
Route::get('/list', 'Transactions\ListTransactionsController@list')->name('list');
});
});