File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,6 @@ func (s *BaseHttpGateway) api(ctx *fasthttp.RequestCtx) {
55
55
// Rewrite the URL of the request to remove the /api/{name} subroute
56
56
pathParts := nitric_utils .SplitPath (string (ctx .Path ()))
57
57
58
- // When a request is made to the base API path, return status info
59
- if len (pathParts ) == 2 {
60
- w := s .pool .GetWorkers (& worker.GetWorkerOptions {
61
- Filter : apiWorkerFilter (apiName ),
62
- })
63
- ctx .Response .SetBody ([]byte (fmt .Sprintf ("<html><body><strong>%d</strong> active route(s) detected for API %v.</body></html>" , len (w ), apiName )))
64
- if len (w ) > 0 {
65
- ctx .Response .SetStatusCode (200 )
66
- } else {
67
- ctx .Response .SetStatusCode (404 )
68
- }
69
- return
70
- }
71
-
72
58
// remove first two path parts
73
59
newPathParts := pathParts [2 :]
74
60
@@ -85,7 +71,7 @@ func (s *BaseHttpGateway) api(ctx *fasthttp.RequestCtx) {
85
71
})
86
72
87
73
if err != nil {
88
- ctx .Error ("worker not found for api " , 404 )
74
+ ctx .Error ("No workers found for provided API route " , 404 )
89
75
return
90
76
}
91
77
You can’t perform that action at this time.
0 commit comments