-
Notifications
You must be signed in to change notification settings - Fork 10
Implemented health check route #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bl4ze/dev
Are you sure you want to change the base?
Changes from 3 commits
f8383e6
ee6fd3e
7f9505e
1040227
41603ba
9c58033
cab9569
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
|
|
||
| command="/home/kartik/.beast/scripts/60ced46738be4be3655bc289164df893f12fe67390d541621d9dae65849519b0",environment="SSH_USER=2",no-agent-forwarding,no-port-forwarding,no-X11-forwarding hi | ||
| command="/home/kartik/.beast/scripts/8027ef0d2bdea68f0c2e04e2e5dbc4d649bfaba68d7baa2f7223a04cd6c41edf",environment="SSH_USER=4",no-agent-forwarding,no-port-forwarding,no-X11-forwarding ssh-rsa AAAAB3NzaC1y | ||
| command="/home/kartik/.beast/scripts/8027ef0d2bdea68f0c2e04e2e5dbc4d649bfaba68d7baa2f7223a04cd6c41edf",environment="SSH_USER=4",no-agent-forwarding,no-port-forwarding,no-X11-forwarding ssh-rsa AAAAB3NzaC1y | ||
| command="/home/kartik/.beast/scripts/169c1d8053fee22df8553f8eb0957cf8cad6dca68fd77c2adf5ca10fe94fb2af",environment="SSH_USER=6",no-agent-forwarding,no-port-forwarding,no-X11-forwarding ssh-rsa AAAAB3NzaC1y | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,3 +23,6 @@ points = 20 | |
| ports = [10002] | ||
| web_root = "challenge" | ||
| default_port = 10002 | ||
|
|
||
| [resource] | ||
| memory_limit = 6710886 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,6 +74,7 @@ func initGinRouter() *gin.Engine { | |
| statusGroup.GET("/challenge/:name", challengeStatusHandler) | ||
| statusGroup.GET("/all", statusHandler) | ||
| statusGroup.GET("/all/:filter", statusHandler) | ||
| statusGroup.GET("/health/:name", ChallengeHealthHandler) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this route unauthorized?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the authorise middleware is there in the whole api group on line 53. Do i need to create a separate auth for status group? |
||
| } | ||
|
|
||
| // Info route group | ||
|
|
@@ -92,6 +93,7 @@ func initGinRouter() *gin.Engine { | |
| infoGroup.GET("/tags", tagHandler) | ||
| infoGroup.GET("/hint/:hintID", hintHandler) | ||
| infoGroup.POST("/hint/:hintID", hintHandler) | ||
|
|
||
| } | ||
|
|
||
| // Notification route group | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this file pushed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably during setup and build. Will remove