initial commit

This commit is contained in:
Kwesi Banson
2022-10-05 22:06:09 +00:00
commit 68f115489b
107 changed files with 10264 additions and 0 deletions

22
routes/api.php Normal file
View File

@@ -0,0 +1,22 @@
<?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::group(['middleware' =>['auth:api']], function(){
Route::post('collect', 'MoneyCollectionController@collect')->name('collect');
});