|
|
|
@ -31,6 +31,7 @@ use Illuminate\Http\Exceptions\HttpResponseException;
|
|
|
|
use Illuminate\Http\Middleware\HandleCors;
|
|
|
|
use Illuminate\Http\Middleware\HandleCors;
|
|
|
|
use Illuminate\Http\Middleware\SetCacheHeaders;
|
|
|
|
use Illuminate\Http\Middleware\SetCacheHeaders;
|
|
|
|
use Illuminate\Http\Middleware\TrustProxies;
|
|
|
|
use Illuminate\Http\Middleware\TrustProxies;
|
|
|
|
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Routing\Middleware\SubstituteBindings;
|
|
|
|
use Illuminate\Routing\Middleware\SubstituteBindings;
|
|
|
|
use Illuminate\Routing\Middleware\ThrottleRequests;
|
|
|
|
use Illuminate\Routing\Middleware\ThrottleRequests;
|
|
|
|
use Illuminate\Routing\Middleware\ValidateSignature;
|
|
|
|
use Illuminate\Routing\Middleware\ValidateSignature;
|
|
|
|
@ -168,6 +169,9 @@ return Application::configure(basePath: dirname(__DIR__))
|
|
|
|
$schedule->command('app:instance-update-total-local-posts')->twiceDailyAt(1, 13, 45)->onOneServer();
|
|
|
|
$schedule->command('app:instance-update-total-local-posts')->twiceDailyAt(1, 13, 45)->onOneServer();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
|
|
->withExceptions(function (Exceptions $exceptions) {
|
|
|
|
|
|
|
|
$exceptions->shouldRenderJsonWhen(
|
|
|
|
|
|
|
|
fn (Request $request) => $request->is('api/*') || $request->expectsJson(),
|
|
|
|
|
|
|
|
);
|
|
|
|
$exceptions->dontReport([
|
|
|
|
$exceptions->dontReport([
|
|
|
|
OAuthServerException::class,
|
|
|
|
OAuthServerException::class,
|
|
|
|
ConnectionException::class,
|
|
|
|
ConnectionException::class,
|
|
|
|
|