mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
✨ Adds a cloud function for unsupported endpoints
This commit is contained in:
parent
018041d025
commit
4900bf3200
1 changed files with 8 additions and 0 deletions
8
services/serverless-functions/not-supported.js
Normal file
8
services/serverless-functions/not-supported.js
Normal file
|
|
@ -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',
|
||||||
|
}),
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue