mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-07 15:03:53 +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 { Hono } from "hono";
|
||||||
|
import { trimTrailingSlash } from 'hono/trailing-slash'
|
||||||
import { asciiHTML, separatorHTML } from "./utils/info.js";
|
import { asciiHTML, separatorHTML } from "./utils/info.js";
|
||||||
import config from "./config.json" with { type: "json" };
|
import config from "./config.json" with { type: "json" };
|
||||||
|
|
||||||
const app = new Hono();
|
const app = new Hono({ strict: true });
|
||||||
|
app.use(trimTrailingSlash())
|
||||||
|
|
||||||
app.get("/", (c) => {
|
app.get("/", (c) => {
|
||||||
return c.html(`
|
return c.html(`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue