From 3bb75448e2cc283c1a59bd105c836664c5e6087a Mon Sep 17 00:00:00 2001 From: Azure Date: Wed, 23 Sep 2026 04:25:25 +0200 Subject: [PATCH] Create metadata.js --- routes/api/v1/metadata.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 routes/api/v1/metadata.js 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