mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-12 07:02:42 -04:00
chore: dry out 410 logic (#45257)
This commit is contained in:
8
api-server/src/server/utils/deprecatedEndpoint.js
Normal file
8
api-server/src/server/utils/deprecatedEndpoint.js
Normal 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.'
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user