diff --git a/routes/api/v1/metadata.js b/routes/api/v1/metadata.js new file mode 100644 index 0000000..b1259ca --- /dev/null +++ b/routes/api/v1/metadata.js @@ -0,0 +1,18 @@ +const express = require("express") +const router = express.Router() + +const SERVER_ICON = process.env.SERVER_ICON +const SERVER_LONG_NAME = process.env.SERVER_LONG_NAME +const SERVER_SHORT_NAME = process.env.SERVER_SHORT_NAME + +router.get("/", async (req, res) => { + return res.status(200).json({ + icon: SERVER_ICON, + names: { + long: SERVER_LONG_NAME, + short: SERVER_SHORT_NAME, + } + }) +}) + +module.exports = router \ No newline at end of file