This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/main/scala/org/codeoverflow/chatoverflow/ui/web/rest/config Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ class ConfigController(implicit val swagger: Swagger) extends JsonServlet with C
26
26
}
27
27
}
28
28
29
+ post(" /ping" , operation(postPing)) {
30
+ authKeyRequired {
31
+ ResultMessage (success = true , " pong" )
32
+ }
33
+ }
34
+
29
35
// Is this even a thing?
30
36
post(" /exit" , operation(postExit)) {
31
37
authKeyRequired {
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ trait ConfigControllerDefinition extends SwaggerSupport with TagSupport with Aut
24
24
description " Shutdown the framework in the next second if a correct auth key is supplied."
25
25
parameter authHeader
26
26
tags controllerTag)
27
+ val postPing : OperationBuilder =
28
+ (apiOperation[ResultMessage ](" postPing" )
29
+ summary " Used to check if the framework is still alive."
30
+ description " Retrieves a empty ping message (with auth key required) and returns pong."
31
+ parameter authHeader
32
+ tags controllerTag)
27
33
val getLogin : OperationBuilder =
28
34
(apiOperation[Boolean ](" getLogin" )
29
35
summary " Returns if the framework is already loaded."
You can’t perform that action at this time.
0 commit comments