panel icon indicating copy to clipboard operation
panel copied to clipboard

Dont block Application API on maintenance

Open expxx opened this issue 1 year ago • 1 comments

Is there an existing feature request for this?

  • [X] I have searched the existing issues before opening this feature request.

Describe the feature you would like to see.

As the title states, don't block the Application API when the program is in maintenance mode.

Describe the solution you'd like.

Just uh, don't block the api in maintenance 🤷

Additional context to this request.

No response

expxx avatar Feb 06 '24 00:02 expxx

Maintenance mode is designed for use when you are modifying the database or upgrading a Laravel app, hence if you need any access to the API you shouldn't be in maintenance mode.

If you need a separate mode that blocks regular users but allows admins (including the application api for privileged tokens) then that should be added separately, but modifying the behaviour of the existing maintenance mode is not an option.

matthewpi avatar Feb 06 '24 00:02 matthewpi

Already possible with Laravel, just need to use a special "bypass token"

https://laravel.com/docs/10.x/configuration#bypassing-maintenance-mode

matthewpi avatar Mar 16 '24 20:03 matthewpi