添加测试http put的路由/test

master
lyf666 2017-09-27 16:02:57 +08:00
parent 5c8eb21401
commit 4ac274f25f
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ object Main {
// System.setProperty("user.timezone","Asia/Shanghai");
val pippo = Pippo(BasicApplication())
pippo.start()
}
}
@ -63,6 +64,10 @@ class BasicApplication : ControllerApplication() {
val arp = ActiveRecordPlugin(dp)
dp.start()
arp.start()
PUT("/test") { context ->
context.send("ok")
}
}
override fun createRequestResponseFactory(): RequestResponseFactory {