Created
December 22, 2015 11:36
-
-
Save ponkotuy/576c12657d2f9a961b1b to your computer and use it in GitHub Desktop.
SkinnyMicroScalas サンプル
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
#!/usr/bin/env scalas | |
/*** | |
scalaVersion := "2.11.7" | |
resolvers += "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases" | |
libraryDependencies += "org.skinny-framework" %% "skinny-micro-server" % "1.0.+" | |
*/ | |
import skinny.micro._ | |
object HelloApp extends WebApp { | |
get("/say-hello") { | |
s"Hello, ${params.getOrElse("name", "Anonymous")}!\n" | |
} | |
} | |
WebServer.mount(HelloApp).port(4567).start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment