finished gallery section

This commit is contained in:
2025-12-01 16:54:11 +01:00
parent cace0119c6
commit 7a7b8dc2f1
13 changed files with 1402 additions and 522 deletions

View File

@@ -29,6 +29,11 @@ async function viewsRoutes(fastify: FastifyInstance) {
reply.type('text/html').send(stream);
});
fastify.get('/gallery/favorites/*', (req: FastifyRequest, reply: FastifyReply) => {
const stream = fs.createReadStream(path.join(__dirname, '..', '..', 'views', 'gallery-image.html'));
reply.type('text/html').send(stream);
});
fastify.get('/anime/:id', (req: FastifyRequest, reply: FastifyReply) => {
const stream = fs.createReadStream(path.join(__dirname, '..', '..', 'views', 'anime.html'));
reply.type('text/html').send(stream);