Created
July 11, 2022 17:04
-
-
Save AbhimanyuAryan/8adcbe66bd56464a2575bc4e17dcf398 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
using Merly | |
@page "/" HTTP.Response(200,"Hello World from Merly!") | |
@page "/hello/:user" HTTP.Response(200,string("<b>Hello ",request.params["user"],"!</b>")) | |
@route POST "/post" HTTP.Response(200,"I did something!") | |
start(host = "127.0.0.1", port = 8086, verbose = true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment