arma-server-web-admin/routes/settings.js

12 lines
213 B
JavaScript
Raw Normal View History

var express = require('express')
2014-04-04 08:37:43 +00:00
2018-08-18 10:31:41 +00:00
module.exports = function (settings) {
var router = express.Router()
2017-04-01 09:19:30 +00:00
router.get('/', function (req, res) {
2018-08-18 10:31:41 +00:00
res.json(settings.getPublicSettings())
})
2017-04-01 09:19:30 +00:00
return router
}