🚚 back: move diagnostics end points outside of exposed routes (#762)

This commit is contained in:
Eric Doughty-Papassideris
2024-12-12 04:11:34 +01:00
parent e9346711f1
commit 633f8ff71b
2 changed files with 2 additions and 2 deletions
@@ -9,7 +9,7 @@ import registerBasicProviders from "./providers";
* The diagnostics service exposes endpoint that are of use for operational reasons.
*
*/
@Prefix("/api/diagnostics")
@Prefix("/diagnostics")
@Consumes(["webserver"])
@ServiceName("diagnostics")
export default class DiagnosticsService extends TdriveService<DiagnosticsServiceAPI> {
@@ -36,7 +36,7 @@ describe("The diagnostics infrastucture", () => {
const getDiagnosticTags = (tag: string, secret: string) =>
platform.app.inject({
method: "GET",
url: `/api/diagnostics/t/${encodeURIComponent(tag)}?secret=${encodeURIComponent(secret)}`,
url: `/diagnostics/t/${encodeURIComponent(tag)}?secret=${encodeURIComponent(secret)}`,
});
it("should refuse invalid probe secrets", async () => {