~gbrlsnchs/kana-guru

658fd55eb7cb105ad6cdd0f14eed1b688576e3e7 — Gabriel Sanches 1 year, 7 months ago 4573bec
Fix redirection when not found
1 files changed, 2 insertions(+), 1 deletions(-)

M src/server.ts
M src/server.ts => src/server.ts +2 -1
@@ 43,7 43,8 @@ function handler(req: Request) {
		});
	}

	return Response.redirect("/");
	const url = new URL(req.url);
	return Response.redirect(url.origin);
}

serve(handler, {