Create metadata.js

This commit is contained in:
2026-09-23 04:25:25 +02:00
parent b03f5c91e6
commit 3bb75448e2
+18
View File
@@ -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