mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 23:27:14 +00:00
order
This commit is contained in:
@@ -37,23 +37,6 @@ export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
server.route({
|
|
||||||
method: "POST",
|
|
||||||
url: "/restore",
|
|
||||||
schema: {
|
|
||||||
response: {
|
|
||||||
200: z.object({ status: z.string() })
|
|
||||||
}
|
|
||||||
},
|
|
||||||
onRequest: verifyAuth([AuthMode.JWT]),
|
|
||||||
handler: async (req) => {
|
|
||||||
checkIfBddNockApiEnabled();
|
|
||||||
logger.info("Restore network requests from nock");
|
|
||||||
nock.restore();
|
|
||||||
return { status: "ok" };
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
server.route({
|
server.route({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "/clear-all",
|
url: "/clear-all",
|
||||||
@@ -70,4 +53,21 @@ export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
|||||||
return { status: "ok" };
|
return { status: "ok" };
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
server.route({
|
||||||
|
method: "POST",
|
||||||
|
url: "/restore",
|
||||||
|
schema: {
|
||||||
|
response: {
|
||||||
|
200: z.object({ status: z.string() })
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onRequest: verifyAuth([AuthMode.JWT]),
|
||||||
|
handler: async (req) => {
|
||||||
|
checkIfBddNockApiEnabled();
|
||||||
|
logger.info("Restore network requests from nock");
|
||||||
|
nock.restore();
|
||||||
|
return { status: "ok" };
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user