feat: add middleware to update "last connected at" when a request comes in
relies on a header named "X-Aniplay-Device-Id"
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import { swaggerUI } from "@hono/swagger-ui";
|
||||
import { OpenAPIHono } from "@hono/zod-openapi";
|
||||
|
||||
import { maybeUpdateLastConnectedAt } from "~/controllers/maybeUpdateLastConnectedAt";
|
||||
|
||||
const app = new OpenAPIHono();
|
||||
|
||||
app.use(maybeUpdateLastConnectedAt);
|
||||
|
||||
app.route(
|
||||
"/",
|
||||
await import("~/controllers/health-check").then(
|
||||
|
||||
Reference in New Issue
Block a user