refactor: create getCurrentDomain helper function

This commit is contained in:
2024-09-08 14:36:36 -05:00
parent d4a5a4fbb1
commit 090a7504aa
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
import type { HonoRequest } from "hono";
export function getCurrentDomain(req: HonoRequest) {
return req.url.replace(req.path, "");
}