mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-07 06:53:54 +05:00
chore/api-prox: trim trailing slash
This commit is contained in:
parent
ec938960cb
commit
83fe8e80e3
1 changed files with 3 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
import { Hono } from "hono";
|
||||
import { trimTrailingSlash } from 'hono/trailing-slash'
|
||||
import { asciiHTML, separatorHTML } from "./utils/info.js";
|
||||
import config from "./config.json" with { type: "json" };
|
||||
|
||||
const app = new Hono();
|
||||
const app = new Hono({ strict: true });
|
||||
app.use(trimTrailingSlash())
|
||||
|
||||
app.get("/", (c) => {
|
||||
return c.html(`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue