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

13 lines
249 B
JavaScript
Raw Normal View History

var express = require('express')
var _ = require('lodash')
2014-04-04 08:37:43 +00:00
2017-04-01 09:19:30 +00:00
module.exports = function (config) {
var router = express.Router()
2017-04-01 09:19:30 +00:00
router.get('/', function (req, res) {
res.json(_.pick(config, ['game', 'path', 'type']))
})
2017-04-01 09:19:30 +00:00
return router
}