mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
ping command.
This commit is contained in:
parent
4c141ce767
commit
475cbcf8f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue