mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
eslint fix
This commit is contained in:
parent
46661287fa
commit
c9c9717d22
6 changed files with 58 additions and 40 deletions
|
@ -1,15 +1,15 @@
|
|||
const config = require("../../shared/config/src/main.js")();
|
||||
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']
|
||||
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
|
||||
})
|
||||
config,
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,7 +6,8 @@ module.exports = async function getRateRoute(fastify) {
|
|||
if (!query['from_currency'] || !query['conv_currency']) {
|
||||
return res.status(400).send({
|
||||
status: 400,
|
||||
message: 'The from_currency and conv_currency fields are required',
|
||||
message:
|
||||
'The from_currency and conv_currency fields are required',
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -32,4 +33,4 @@ module.exports = async function getRateRoute(fastify) {
|
|||
'Read more in the documentation',
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
module.exports = async function getRateRoute(fastify) {
|
||||
fastify.get('/', async function (req, res) {
|
||||
return res.status(200).send({
|
||||
message: 'Hello World!',
|
||||
documentation: 'https://github.com/Redume/Kekkai/wiki/'
|
||||
})
|
||||
return res.status(200).send({
|
||||
message: 'Hello World!',
|
||||
documentation: 'https://github.com/Redume/Kekkai/wiki/',
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue