Skip to content

Instantly share code, notes, and snippets.

@apaleslimghost
Created July 9, 2014 11:01
Show Gist options
  • Save apaleslimghost/ee3eb5fa4c879a08dc93 to your computer and use it in GitHub Desktop.
Save apaleslimghost/ee3eb5fa4c879a08dc93 to your computer and use it in GitHub Desktop.
{Status, Header}:handle = require \oban
{get, route} = require \livewire
ok = ([Status 200] ++)
not-found = ([Status 404] ++)
with-header = (k,v,s)--> [Header k,v] ++ s
handle route [
get '/' -> ok "hello world"
(req)-> not-found "#{req.url} not found"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment