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
+10 -10
View File
@@ -46,7 +46,7 @@ async function cropAndMeta(
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -82,7 +82,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -140,7 +140,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -175,7 +175,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -211,7 +211,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -232,7 +232,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -253,7 +253,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -277,7 +277,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -301,7 +301,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -325,7 +325,7 @@ describe("Crop", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/crop",
url: "/api/v1/tools/image/crop",
headers: { "content-type": contentType },
body,
});