mirror of
https://github.com/txtdot/txtdot
synced 2024-10-18 14:40:19 +03:00
Fix: template paths
This commit is contained in:
parent
871a3cecfd
commit
e4c711336f
@ -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 });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -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 });
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user