Skip to content

Instantly share code, notes, and snippets.

@AbhimanyuAryan
Created July 11, 2022 17:04
Show Gist options
  • Save AbhimanyuAryan/8adcbe66bd56464a2575bc4e17dcf398 to your computer and use it in GitHub Desktop.
Save AbhimanyuAryan/8adcbe66bd56464a2575bc4e17dcf398 to your computer and use it in GitHub Desktop.
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