添加测试http put的路由/test
parent
5c8eb21401
commit
4ac274f25f
|
|
@ -16,6 +16,7 @@ object Main {
|
||||||
// System.setProperty("user.timezone","Asia/Shanghai");
|
// System.setProperty("user.timezone","Asia/Shanghai");
|
||||||
val pippo = Pippo(BasicApplication())
|
val pippo = Pippo(BasicApplication())
|
||||||
pippo.start()
|
pippo.start()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,6 +64,10 @@ class BasicApplication : ControllerApplication() {
|
||||||
val arp = ActiveRecordPlugin(dp)
|
val arp = ActiveRecordPlugin(dp)
|
||||||
dp.start()
|
dp.start()
|
||||||
arp.start()
|
arp.start()
|
||||||
|
|
||||||
|
PUT("/test") { context ->
|
||||||
|
context.send("ok")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun createRequestResponseFactory(): RequestResponseFactory {
|
override fun createRequestResponseFactory(): RequestResponseFactory {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue