mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add back throttle provider
This commit is contained in:
parent
da518bad6e
commit
8b382199d4
@ -36,11 +36,11 @@ class RouteServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
|
||||||
// if (Ninja::isHosted() && !config('ninja.testvars.travis')) {
|
if (Ninja::isHosted() && !config('ninja.testvars.travis')) {
|
||||||
// app('router')->aliasMiddleware('throttle', ThrottleRequestsWithPredis::class);
|
app('router')->aliasMiddleware('throttle', ThrottleRequestsWithPredis::class);
|
||||||
// } else {
|
} else {
|
||||||
app('router')->aliasMiddleware('throttle', ThrottleRequests::class);
|
app('router')->aliasMiddleware('throttle', ThrottleRequests::class);
|
||||||
// }
|
}
|
||||||
|
|
||||||
Route::bind('task_scheduler', function ($value) {
|
Route::bind('task_scheduler', function ($value) {
|
||||||
if (is_numeric($value)) {
|
if (is_numeric($value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user