fix: rename route from /upcoming/titles to /upcoming-titles

This commit is contained in:
2024-09-02 13:41:27 -04:00
parent 690b5aa426
commit ae04542ef9
4 changed files with 3 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ import { getUpcomingTitlesFromAnilist } from "./anilist";
const app = new Hono(); const app = new Hono();
app.post("/titles", async (c) => { app.post("/", async (c) => {
if ( if (
!(await verifyQstashHeader( !(await verifyQstashHeader(
env<Env, typeof c>(c, "workerd"), env<Env, typeof c>(c, "workerd"),

View File

@@ -1,10 +0,0 @@
import { Hono } from "hono";
const app = new Hono();
app.route(
"/",
await import("./titles").then((controller) => controller.default),
);
export default app;

View File

@@ -34,8 +34,8 @@ app.route(
await import("~/controllers/token").then((controller) => controller.default), await import("~/controllers/token").then((controller) => controller.default),
); );
app.route( app.route(
"/upcoming", "/upcoming-titles",
await import("~/controllers/upcoming").then( await import("~/controllers/upcoming-titles").then(
(controller) => controller.default, (controller) => controller.default,
), ),
); );