chore: Remove node_modules, dist, .env from tracking

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-02-10 18:09:40 +02:00
parent 2768650b42
commit 9f7c8faf60
3817 changed files with 0 additions and 856986 deletions

View File

@@ -1,25 +0,0 @@
// src/middleware/trailing-slash/index.ts
var trimTrailingSlash = () => {
return async function trimTrailingSlash2(c, next) {
await next();
if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path !== "/" && c.req.path.at(-1) === "/") {
const url = new URL(c.req.url);
url.pathname = url.pathname.substring(0, url.pathname.length - 1);
c.res = c.redirect(url.toString(), 301);
}
};
};
var appendTrailingSlash = () => {
return async function appendTrailingSlash2(c, next) {
await next();
if (c.res.status === 404 && (c.req.method === "GET" || c.req.method === "HEAD") && c.req.path.at(-1) !== "/") {
const url = new URL(c.req.url);
url.pathname += "/";
c.res = c.redirect(url.toString(), 301);
}
};
};
export {
appendTrailingSlash,
trimTrailingSlash
};