Commit 3a4f2357 authored by Areum Kim's avatar Areum Kim
Browse files

[Issue, #36] add orignal gets

parent 791454af
Pipeline #78209 failed with stages
in 2 minutes and 15 seconds
......@@ -80,6 +80,15 @@ fun Application.module() {
}
routing {
get("/"){
call.respondRedirect("/swagger-ui/index.html?url=/openapi.json", true)
}
get ("/openapi.json"){
call.respond(GsonBuilder().create().toJson(application.openAPIGen.api.serialize()))
}
//for FAQData
get("/summary") {
val response = PythonBridge().getSummary("test bridge",5)
call.respond(response)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment