diff --git a/src/site/api/settings.js b/src/site/api/settings.js index f59af1f..7256a52 100644 --- a/src/site/api/settings.js +++ b/src/site/api/settings.js @@ -7,6 +7,17 @@ const crypto = require("crypto") const db = require("../../lib/db") module.exports = [ + { + route: "/settings.json", methods: ["GET"], code: async ({req, url}) => { + const token = getToken(req) + const settings = getSettings(req) + return { + statusCode: 200, + contentType: "application/json", + content: settings + } + } + }, { route: "/settings", methods: ["GET"], code: async ({req, url}) => { const token = getToken(req)