@@ -4,12 +4,12 @@ Sift is a routing and utility library for Deno and
44[ Deno Deploy] ( https://deno.com/deploy ) .
55
66![ ci] ( https://github.com/satyarohith/sift/actions/workflows/ci.yml/badge.svg )
7- [ ![ deno doc
] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/[email protected] .1 /mod.ts ) 7+ [ ![ deno doc
] ( https://doc.deno.land/badge.svg )] ( https://doc.deno.land/https/deno.land/x/[email protected] .2 /mod.ts ) 88
99## Usage
1010
1111The documentation below briefly explains the common usage of the functions. You
12- can visit
[ deno doc
] ( https://doc.deno.land/https/deno.land/x/[email protected] .1 /mod.ts ) 12+ can visit
[ deno doc
] ( https://doc.deno.land/https/deno.land/x/[email protected] .2 /mod.ts ) 1313site to learn more about the API.
1414
1515``` sh
@@ -26,7 +26,7 @@ when the requested path matches the provided pattern, the corresponding handler
2626is invoked.
2727
2828``` js
29- import {
serve }
from " https://deno.land/x/[email protected] .1 /mod.ts" ;
29+ import {
serve }
from " https://deno.land/x/[email protected] .2 /mod.ts" ;
3030
3131serve ({
3232 " / " : () => new Response (" hello world" ),
@@ -54,7 +54,7 @@ If you're serving a directory, it is required that the path string end with
5454requested resource.
5555
5656``` js
57- import {
serve ,
serveStatic }
from " https://deno.land/x/[email protected] .1 /mod.ts" ;
57+ import {
serve ,
serveStatic }
from " https://deno.land/x/[email protected] .2 /mod.ts" ;
5858
5959serve ({
6060 // You can serve a single file.
@@ -83,7 +83,7 @@ Converts an object literal to a JSON string and creates a `Response` instance
8383with ` application/ json` as the ` content- type` .
8484
8585` ` ` js
86- import {
json ,
serve }
from " https://deno.land/x/[email protected] .1 /mod.ts" ;
86+ import {
json ,
serve }
from " https://deno.land/x/[email protected] .2 /mod.ts" ;
8787
8888serve ({
8989 " / " : () => json ({ message: " hello world" }),
@@ -102,7 +102,7 @@ imported.
102102
103103` ` ` jsx
104104/** @jsx h */
105- import {
h ,
jsx ,
serve }
from " https://deno.land/x/[email protected] .1 /mod.ts" ;
105+ import {
h ,
jsx ,
serve }
from " https://deno.land/x/[email protected] .2 /mod.ts" ;
106106
107107const App = () => (
108108 < div>
0 commit comments