mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
feat(server): Deleted root with instance config due to unnecessity
This commit is contained in:
parent
b864f8c929
commit
a34bcd0a12
2 changed files with 79 additions and 102 deletions
|
@ -1,15 +0,0 @@
|
|||
const config = require('../../shared/config/src/main.js')();
|
||||
|
||||
module.exports = async function configurationRoutes(fastify) {
|
||||
fastify.get('/api/configurations/json', async function (req, res) {
|
||||
delete config['database'];
|
||||
delete config['currency']['coinapiKeys'];
|
||||
delete config['server']['ssl']['private_key'];
|
||||
delete config['server']['ssl']['cert'];
|
||||
delete config['analytics']['plausible_token'];
|
||||
|
||||
return res.status(200).send({
|
||||
config,
|
||||
});
|
||||
});
|
||||
};
|
Loading…
Add table
Reference in a new issue