chore: dry out 410 logic (#45257)

This commit is contained in:
Naomi Carrigan
2022-02-25 11:08:18 -08:00
committed by GitHub
parent c2105c17f3
commit 9e03419efb
4 changed files with 15 additions and 31 deletions

View File

@@ -0,0 +1,8 @@
export function deprecatedEndpoint(_, res) {
return res.status(410).json({
message: {
type: 'info',
message: 'Please reload the app, this feature is no longer available.'
}
});
}