1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

ping command.

This commit is contained in:
Cedric Beust 2016-05-06 02:23:44 -08:00
parent 4c141ce767
commit 475cbcf8f7

View file

@ -28,7 +28,7 @@ class SparkServer(val initCallback: (String) -> List<Project>, val cleanUpCallba
override fun run(port: Int) {
Spark.port(port)
Spark.get("/hello", { req, res -> "Hello world" })
Spark.get("/ping", { req, res -> "The Kobalt server is up and running" })
Spark.get("/v0/getDependencies", "application/json", Route { request, response ->
val buildFile = request.queryParams("buildFile")
initCallback(buildFile)