Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:sparkles: Adds a cloud function for unsupported endpoints

Alicia Sykes4900bf320020
diff --git a/services/serverless-functions/not-supported.js b/services/serverless-functions/not-supported.js
new file mode 100644
index 00000000..255d5d94
--- /dev/null
+++ b/services/serverless-functions/not-supported.js
@@ -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',
+ }),
+});