chore: Auto reload frontend of client is out of date (#1270)
* Move editor version to header Add editor version check for API endpoints * fix: Editor update auto-reload Bump RME * fix: Only redirect if editor header exists * lint
This commit is contained in:
@ -45,3 +45,9 @@ export function ParamRequiredError(
|
||||
export function ValidationError(message: string = 'Validation failed') {
|
||||
return httpErrors(400, message, { id: 'validation_error' });
|
||||
}
|
||||
|
||||
export function EditorUpdateError(
|
||||
message: string = 'The client editor is out of date and must be reloaded'
|
||||
) {
|
||||
return httpErrors(400, message, { id: 'editor_update_required' });
|
||||
}
|
||||
|
Reference in New Issue
Block a user