mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
Сделал хоум роут с hello world и ссылкой на доку
This commit is contained in:
parent
20cefebc0d
commit
a697efbbd4
2 changed files with 10 additions and 0 deletions
|
@ -24,9 +24,11 @@ const fastify = require('fastify')({
|
|||
|
||||
const getRateRoute = require('./routes/getRate.js');
|
||||
const configurationRoutes = require('./routes/configuration.js');
|
||||
const HomeRoute = require('./routes/home.js');
|
||||
|
||||
fastify.register(getRateRoute);
|
||||
fastify.register(configurationRoutes);
|
||||
fastify.register(HomeRoute);
|
||||
|
||||
fastify.listen(
|
||||
{
|
||||
|
|
8
server/routes/home.js
Normal file
8
server/routes/home.js
Normal file
|
@ -0,0 +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/'
|
||||
})
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue