4 ms·
In Scala using Cask it's object MinimalApplication extends cask.MainRoutes{ @cask.get("/") def hello() = "Hello World!" initialize()
by lihaoyi 7y ago
In Scala using Cask it's
object MinimalApplication extends cask.MainRoutes{
@cask.get("/")
def hello() = "Hello World!"
initialize()
}
API design shamelessly stolen from Python's Flask framework