Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
aa06788b
...
aa06788b5c18804494780c04eb850baa5fda040c
authored
2022-07-25 20:20:56 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
1e5dc27d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Kernel.php
app/Providers/RouteServiceProvider.php
app/Http/Kernel.php
View file @
aa06788
...
...
@@ -44,7 +44,7 @@ class Kernel extends HttpKernel
],
'api'
=>
[
ThrottleRequests
::
class
,
//
ThrottleRequests::class,
\Illuminate\Routing\Middleware\SubstituteBindings
::
class
,
],
];
...
...
app/Providers/RouteServiceProvider.php
View file @
aa06788
...
...
@@ -71,7 +71,7 @@ class RouteServiceProvider extends ServiceProvider
protected
function
configureRateLimiting
()
{
RateLimiter
::
for
(
'api'
,
function
(
Request
$request
)
{
return
Limit
::
perMinute
(
6
0
)
->
by
(
optional
(
$request
->
user
())
->
id
?:
$request
->
ip
());
return
Limit
::
perMinute
(
100
0
)
->
by
(
optional
(
$request
->
user
())
->
id
?:
$request
->
ip
());
});
}
}
...
...
Please
register
or
sign in
to post a comment