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
+15 -15
View File
@@ -42,7 +42,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -61,7 +61,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -99,7 +99,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -125,7 +125,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -151,7 +151,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -170,7 +170,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -192,7 +192,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -213,7 +213,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -233,7 +233,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -256,7 +256,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -282,7 +282,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -308,7 +308,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -334,7 +334,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,
@@ -357,7 +357,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: { "content-type": contentType },
body,
});
@@ -376,7 +376,7 @@ describe("Restore Photo", () => {
const res = await app.inject({
method: "POST",
url: "/api/v1/tools/restore-photo",
url: "/api/v1/tools/image/restore-photo",
headers: {
authorization: `Bearer ${adminToken}`,
"content-type": contentType,