mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #97 from Dahlgren/feature/api-whitelist-config
Whitelist which config settings to send for API endpoint
This commit is contained in:
commit
bcb1fe6a9b
@ -1,10 +1,11 @@
|
||||
var express = require('express')
|
||||
var _ = require('lodash')
|
||||
|
||||
module.exports = function (config) {
|
||||
var router = express.Router()
|
||||
|
||||
router.get('/', function (req, res) {
|
||||
res.json(config)
|
||||
res.json(_.pick(config, ['game', 'path', 'type']))
|
||||
})
|
||||
|
||||
return router
|
||||
|
Loading…
Reference in New Issue
Block a user