~jiyu/Jiyu-Web

Jiyu-Web/routes/api.php -rw-r--r-- 398 bytes
2cdab4fajiyu You can now click on an element to edit it instead of having to close your previous edit. 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

use Illuminate\Support\Facades\Route;

Route::post('login', 'UserController@login');

Route::group(['middleware' => 'auth:api'], function () {
    Route::get('logout', 'UserController@logout');

    Route::put('pages/{id}/restore', 'PageController@restore');
    Route::delete('pages/{id}/pernament', 'PageController@delete');
});

Route::apiResources([
    'pages' => 'PageController',
]);