mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 20:51:25 +03:00
chore(nginx): The routes /, /robots.txt, /favicon.ico were moved to nginx for the web microservice. Added html page to the home route
This commit is contained in:
parent
907b614f25
commit
6bae4dabfc
14 changed files with 1480 additions and 28 deletions
7
web/routes/home.js
Normal file
7
web/routes/home.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
const fs = require("node:fs");
|
||||
|
||||
module.exports = async function homeRoute(fastify) {
|
||||
fastify.get('/', (req, res) => {
|
||||
res.send(fs.createReadStream('./src/html/index.html'));
|
||||
});
|
||||
}
|
Loading…
Add table
Reference in a new issue