added marketplace

This commit is contained in:
2025-12-04 18:32:41 +01:00
parent 5cdf53b7ce
commit c0ffc6c108
7 changed files with 1009 additions and 27 deletions

View File

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