Created
July 9, 2014 11:01
-
-
Save apaleslimghost/ee3eb5fa4c879a08dc93 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{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