diff --git a/src/routes/get.ts b/src/routes/get.ts index 99e6a08..58db838 100644 --- a/src/routes/get.ts +++ b/src/routes/get.ts @@ -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 }); } }); } diff --git a/src/routes/index.ts b/src/routes/index.ts index 7d03dc1..200463a 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -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 }); }); }