From 9249bfa19ee705c076622ae754c2ee0534a90703 Mon Sep 17 00:00:00 2001 From: Artemy Egorov Date: Sun, 20 Aug 2023 07:50:56 +0300 Subject: [PATCH] refactor: separate api --- src/routes/parse.ts | 2 +- src/routes/raw-html.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/parse.ts b/src/routes/parse.ts index bca6363..24b5738 100644 --- a/src/routes/parse.ts +++ b/src/routes/parse.ts @@ -5,7 +5,7 @@ import { generateRequestUrl } from "../utils/generate"; export default async function parseRoute(fastify: FastifyInstance) { fastify.get( - "/parse", + "/api/parse", { schema: parseSchema }, async (request: EngineRequest) => { return await handlePage( diff --git a/src/routes/raw-html.ts b/src/routes/raw-html.ts index 30c520f..83ac62f 100644 --- a/src/routes/raw-html.ts +++ b/src/routes/raw-html.ts @@ -6,7 +6,7 @@ import { generateRequestUrl } from "../utils/generate"; export default async function rawHtml(fastify: FastifyInstance) { fastify.get( - "/raw-html", + "/api/raw-html", { schema: rawHtmlSchema }, async (request: GetRequest) => { return (