First commit

This commit is contained in:
PovilasKorop
2021-10-17 10:07:19 +03:00
commit 4a3afbafd3
142 changed files with 230700 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
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 within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
return $request->user();
});
Route::group(['middleware' => 'auth:sanctum'], function() {
// Task 12: Manage tasks with endpoint /api/v1/tasks/*****.
// Keep in mind that prefix should be /api/v1.
// Add ONE line to assign 5 resource routes to TaskController
// Put one code line here below
});