fix: rename route from /upcoming/titles to /upcoming-titles
This commit is contained in:
@@ -15,7 +15,7 @@ import { getUpcomingTitlesFromAnilist } from "./anilist";
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
app.post("/titles", async (c) => {
|
||||
app.post("/", async (c) => {
|
||||
if (
|
||||
!(await verifyQstashHeader(
|
||||
env<Env, typeof c>(c, "workerd"),
|
||||
@@ -1,10 +0,0 @@
|
||||
import { Hono } from "hono";
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
app.route(
|
||||
"/",
|
||||
await import("./titles").then((controller) => controller.default),
|
||||
);
|
||||
|
||||
export default app;
|
||||
@@ -34,8 +34,8 @@ app.route(
|
||||
await import("~/controllers/token").then((controller) => controller.default),
|
||||
);
|
||||
app.route(
|
||||
"/upcoming",
|
||||
await import("~/controllers/upcoming").then(
|
||||
"/upcoming-titles",
|
||||
await import("~/controllers/upcoming-titles").then(
|
||||
(controller) => controller.default,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user