chore/api-prox: trim trailing slash

This commit is contained in:
Kentai Radiquum 2025-09-05 22:38:56 +05:00
parent ec938960cb
commit 83fe8e80e3
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -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(`