Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.
/ wave Public archive

A module-based Deno Deploy routing library, built for web APIs

License

Notifications You must be signed in to change notification settings

Bloxypedia/wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wave

A module-based Deno Deploy routing library, built for web APIs

import { handle } from "https://deno.land/x/wave@0.1.0/mod.ts"

import { getUserFunction } from "path/to/usermodule.ts"

//Hande requests
handle({
    modules: {
        "users": {
            "/:userid": {
                "GET": (request, params) => new Response(getUserFunction(params.userid))
            }
        }
    },
    404: () => new Response("Page not Found", {status: 404})
});

About

A module-based Deno Deploy routing library, built for web APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published