-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.php
50 lines (40 loc) · 1.23 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\User;
/*
|--------------------------------------------------------------------------
| 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::get('/test', function (Request $request) {
return User::all();
});
Auth::routes();
Route::get('/users', function (Request $request) {
return User::all();
});
// Route::get('/te', 'Auth\AuthController@login');
Route::get('/signin', function (Request $request) {
return $request->pathInfo;
});
Route::get('/signup', function (Request $request) {
return $request->pathInfo;
});
Route::get('/signout', function (Request $request) {
return $request->pathInfo;
});
Route::get('/password_rest', function (Request $request) {
return $request->pathInfo;
});
Route::get('/signin', function (Request $request) {
return $request->pathInfo;
});