refactor: hide not api routes in swagger
This commit is contained in:
parent
9249bfa19e
commit
51a190b8cb
@ -48,7 +48,7 @@ class App {
|
|||||||
description: publicConfig.description,
|
description: publicConfig.description,
|
||||||
version: publicConfig.version,
|
version: publicConfig.version,
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
await fastify.register(fastifySwaggerUi, { routePrefix: "/doc" });
|
await fastify.register(fastifySwaggerUi, { routePrefix: "/doc" });
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
version: "1.0.0",
|
version: "1.1.0",
|
||||||
description:
|
description:
|
||||||
"HTTP proxy that parses only text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts",
|
"HTTP proxy that parses only text, links and pictures from pages reducing internet traffic, removing ads and heavy scripts",
|
||||||
};
|
};
|
||||||
|
@ -31,6 +31,7 @@ export interface IParseSchema {
|
|||||||
|
|
||||||
export const indexSchema = {
|
export const indexSchema = {
|
||||||
produces: ["text/html"],
|
produces: ["text/html"],
|
||||||
|
hide: true
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getQuerySchema = {
|
export const getQuerySchema = {
|
||||||
@ -70,6 +71,7 @@ export const parseQuerySchema = {
|
|||||||
|
|
||||||
export const GetSchema: FastifySchema = {
|
export const GetSchema: FastifySchema = {
|
||||||
description: "Get page",
|
description: "Get page",
|
||||||
|
hide: true,
|
||||||
querystring: getQuerySchema,
|
querystring: getQuerySchema,
|
||||||
produces: ["text/html", "text/plain"],
|
produces: ["text/html", "text/plain"],
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user