generated from azures04/Base-REST-API
18 lines
457 B
JavaScript
18 lines
457 B
JavaScript
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 |