arma-server-web-admin/routes/settings.js
Björn Dahlgren b37342e100 Whitelist which config settings to send for API endpoint
Avoids sharing private username and password for Steam etc
2018-01-02 14:36:02 +01:00

13 lines
249 B
JavaScript

var express = require('express')
var _ = require('lodash')
module.exports = function (config) {
var router = express.Router()
router.get('/', function (req, res) {
res.json(_.pick(config, ['game', 'path', 'type']))
})
return router
}