Files
freeCodeCamp/api-server/src/server/utils/disabled-endpoints.js
2022-05-18 08:39:52 -05:00

18 lines
416 B
JavaScript

export function deprecatedEndpoint(_, res) {
return res.status(410).json({
message: {
type: 'info',
message: 'Please reload the app, this feature is no longer available.'
}
});
}
export function temporarilyDisabledEndpoint(_, res) {
return res.status(404).json({
message: {
type: 'info',
message: 'Please reload the app, this feature is no longer available.'
}
});
}