test(api): section-prefix tool URLs across integration, docker, and e2e api specs

This commit is contained in:
SnapOtter
2026-06-20 12:24:50 +08:00
parent fc205c7428
commit f80444791b
213 changed files with 2868 additions and 2846 deletions
+13 -13
View File
@@ -43,7 +43,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -59,7 +59,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -82,7 +82,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -99,7 +99,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -118,7 +118,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -136,7 +136,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -153,7 +153,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -173,7 +173,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -195,7 +195,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -212,7 +212,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -228,7 +228,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { "content-type": contentType },
body,
});
@@ -245,7 +245,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});
@@ -262,7 +262,7 @@ describe("erase-object", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/erase-object",
url: "/api/v1/tools/image/erase-object",
headers: { authorization: `Bearer ${adminToken}`, "content-type": contentType },
body,
});