Take a break
This commit is contained in:
@@ -24,21 +24,32 @@ class RouteServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
|
||||
});
|
||||
|
||||
$this->routes(function () {
|
||||
Route::middleware('web')
|
||||
->prefix('tests')
|
||||
->group(base_path('routes/tests.php'));
|
||||
Route::middleware('api')
|
||||
->prefix('api')
|
||||
->group(base_path('routes/api.php'));
|
||||
if (config('platform.global.hiatus'))
|
||||
{
|
||||
Route::middleware('web')
|
||||
->group(base_path('routes/hiatus.php'));
|
||||
}
|
||||
else
|
||||
{
|
||||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
|
||||
});
|
||||
|
||||
$this->routes(function () {
|
||||
Route::middleware('web')
|
||||
->prefix('tests')
|
||||
->group(base_path('routes/tests.php'));
|
||||
Route::middleware('api')
|
||||
->prefix('api')
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
Route::middleware('web')
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Route::middleware('web')
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
return [
|
||||
|
||||
'hiatus' => true,
|
||||
|
||||
'indexing' => env('ENABLE_INDEXING', false),
|
||||
|
||||
'launched_epoch' => '1695513600', // 24-09-2023 00:00:00 GMT +0
|
||||
|
||||
1
resources/views/hiatus.blade.php
Normal file
1
resources/views/hiatus.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
FutureWalker.co is undergoing an amazing update! In the meantime follow me at <a href="https://x.com/charlestehio">@charlestehio</a> in X.
|
||||
Reference in New Issue
Block a user