reorganise api, add "Connection refused" error in setup

fixes #201
This commit is contained in:
Harvey Tindall
2022-03-22 14:58:39 +00:00
parent cebde9d4c0
commit 12db53d1eb
9 changed files with 2519 additions and 2471 deletions
+3
View File
@@ -68,6 +68,9 @@ func (app *appContext) TestJF(gc *gin.Context) {
if !(status == 200 || status == 204) || err != nil {
msg := ""
switch status {
case 0:
msg = "errorConnectionRefused"
status = 500
case 401:
msg = "errorInvalidUserPass"
case 403: