Created
June 6, 2021 17:57
-
-
Save 4ov/5bfeac9fb6dfdb2afd76bb61d1ec3764 to your computer and use it in GitHub Desktop.
example of deno-fetcher usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Fetcher from 'https://raw.githubusercontent.com/4ov/deno-fetcher/main/mod.ts' | |
const app = new Fetcher(); | |
app.get('/', (event)=>{ | |
event.respondWith(new Response('hola')) | |
}) | |
addEventListener('fetch', app.handle.bind(app)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
live: https://deno-fetcher.deno.dev/