This commit is contained in:
Emmaline Autumn 2024-12-01 05:31:21 -07:00
parent 3e68ca285b
commit defd40293f
3 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "@bearmetal/router", "name": "@bearmetal/router",
"description": "A simple router for Deno", "description": "A simple router for Deno",
"version": "0.1.2", "version": "0.1.3",
"stable": true, "stable": true,
"repository": "https://github.com/emmaos/bearmetal", "repository": "https://github.com/emmaos/bearmetal",
"files": [ "files": [

7
mod.ts
View File

@ -1 +1,6 @@
export { Router } from "./router.ts"; /**
* @module
* BearMetal Router, for routing HTTP requests with Deno.serve
*/
export { Router } from "./router.ts";

View File

@ -1,3 +1,8 @@
/**
* @module
* BearMetal Router types
*/
export interface RouterContext { export interface RouterContext {
url: URL; url: URL;
params: Record<string, string | undefined>; params: Record<string, string | undefined>;