refactor: separate api
This commit is contained in:
parent
834c8ef23a
commit
9249bfa19e
@ -5,7 +5,7 @@ import { generateRequestUrl } from "../utils/generate";
|
||||
|
||||
export default async function parseRoute(fastify: FastifyInstance) {
|
||||
fastify.get<IParseSchema>(
|
||||
"/parse",
|
||||
"/api/parse",
|
||||
{ schema: parseSchema },
|
||||
async (request: EngineRequest) => {
|
||||
return await handlePage(
|
||||
|
@ -6,7 +6,7 @@ import { generateRequestUrl } from "../utils/generate";
|
||||
|
||||
export default async function rawHtml(fastify: FastifyInstance) {
|
||||
fastify.get<IParseSchema>(
|
||||
"/raw-html",
|
||||
"/api/raw-html",
|
||||
{ schema: rawHtmlSchema },
|
||||
async (request: GetRequest) => {
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user