generated from azures04/Base-REST-API
Create metadata.js
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user