Fix: template paths

This commit is contained in:
DarkCat09 2023-08-15 16:19:02 +04:00
parent 871a3cecfd
commit e4c711336f
No known key found for this signature in database
GPG Key ID: 4785B6FB1C50A540
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export default async function getRoute(fastify: FastifyInstance) {
if (format === "text") {
return parsed.textContent;
} else {
return reply.view("/templates/index.ejs", { parsed: parsed });
return reply.view("/templates/get.ejs", { parsed: parsed });
}
});
}

View File

@ -3,6 +3,6 @@ import { engineList } from "../handlers/main";
export default async function indexRoute(fastify: FastifyInstance) {
fastify.get("/", async (_, reply) => {
return reply.view("/templates/start.ejs", { engineList });
return reply.view("/templates/index.ejs", { engineList });
});
}