mirror of
https://github.com/BrenBroZAYT/dashy.git
synced 2026-06-13 16:39:59 +00:00
✨ Adds a cloud function for unsupported endpoints
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/* A Netlify cloud function to return a message endpoints that are not available */
|
||||
exports.handler = async () => ({
|
||||
statusCode: 200,
|
||||
body: JSON.stringify({
|
||||
success: false,
|
||||
error: 'This action is not supported on Netlify',
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user