Take a break
This commit is contained in:
@@ -23,6 +23,14 @@ class RouteServiceProvider extends ServiceProvider
|
||||
* Define your route model bindings, pattern filters, and other route configuration.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
|
||||
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());
|
||||
@@ -41,4 +49,7 @@ public function boot(): void
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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