ref: rename endpoint to POST /validation/session

This commit is contained in:
alikia2x (寒寒) 2025-05-10 22:41:10 +08:00
parent 8456bb7485
commit 5fb1355346
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
4 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1 @@
export * from "./POST.ts";

View File

@ -1 +0,0 @@
export * from "./GET.ts";

View File

@ -4,7 +4,7 @@ import { registerHandler } from "routes/user";
import { videoInfoHandler, getSnapshotsHanlder } from "routes/video"; import { videoInfoHandler, getSnapshotsHanlder } from "routes/video";
import { Hono } from "hono"; import { Hono } from "hono";
import { Variables } from "hono/types"; import { Variables } from "hono/types";
import { createValidationSessionHandler } from "routes/validation/token"; import { createValidationSessionHandler } from "routes/validation/session";
export function configureRoutes(app: Hono<{ Variables: Variables }>) { export function configureRoutes(app: Hono<{ Variables: Variables }>) {
app.get("/", ...rootHandler); app.get("/", ...rootHandler);
@ -15,5 +15,5 @@ export function configureRoutes(app: Hono<{ Variables: Variables }>) {
app.get("/video/:id/info", ...videoInfoHandler); app.get("/video/:id/info", ...videoInfoHandler);
app.get("/validation/token", ...createValidationSessionHandler) app.post("/validation/session", ...createValidationSessionHandler)
} }