Created
June 29, 2018 19:01
-
-
Save rishavs/8908ddcd4d1934888156e8a318211e09 to your computer and use it in GitHub Desktop.
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
def self.run(method, url, ctx) | |
url = clean(url) | |
path = {url, method} | |
case path | |
when {"/hola/", "GET"} | |
ctx.response.print "Yo buddy!" | |
when {"/about/", "GET"} | |
ctx.response.content_type = "text/html; charset=utf-8" | |
ctx.response.print Cove::Layout.render(Cove::Views.about) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment