Skip to content

Commit

Permalink
feat(route):Add get sms code route
Browse files Browse the repository at this point in the history
  • Loading branch information
yinfuyuan committed Jan 25, 2021
1 parent 1784236 commit d380c58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/api.php
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\AuthController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Expand All @@ -17,3 +18,5 @@
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});

Route::middleware('throttle:100,30')->post('getSmsCode', [AuthController::class, 'getSmsCode']);

0 comments on commit d380c58

Please sign in to comment.