support for multiple users

This commit is contained in:
2025-12-06 01:21:19 +01:00
parent 4e2875579c
commit 2df7625657
20 changed files with 2313 additions and 65 deletions

View File

@@ -3,9 +3,13 @@ import * as fs from 'fs';
import * as path from 'path';
async function viewsRoutes(fastify: FastifyInstance) {
fastify.get('/', (req: FastifyRequest, reply: FastifyReply) => {
const stream = fs.createReadStream(path.join(__dirname, '..', '..', 'views', 'anime', 'index.html'));
const stream = fs.createReadStream(path.join(__dirname, '..', '..', 'views', 'users.html'));
reply.type('text/html').send(stream);
});
fastify.get('/anime', (req: FastifyRequest, reply: FastifyReply) => {
const stream = fs.createReadStream(path.join(__dirname, '..', '..', 'views', 'anime', 'animes.html'));
reply.type('text/html').send(stream);
});