Skip to content

Instantly share code, notes, and snippets.

@mohak1712
Created March 28, 2020 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohak1712/598f23acbb207f365bbbc8c4c7bb78d9 to your computer and use it in GitHub Desktop.
Save mohak1712/598f23acbb207f365bbbc8c4c7bb78d9 to your computer and use it in GitHub Desktop.
import static spark.Spark.get;
import static spark.Spark.port;
public class App {
public static void main(String[] args) {
port(8080);
get("/ping", (req, res) -> "{\"message\":\"Pong\"}", Object::toString);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment