add skip for check exist method && handler for user methods

This commit is contained in:
DeniskaRediska committed 2020-01-17 13:21:23 +03:00
1 parent 08c4fb9bee
commit 91a14f9f23
14 files changed
+136 -87

No files matched your search

+6 -4
View File
@@ -66,10 +66,12 @@ func (handlerHelper) AuthenticateAccountingProxy(ctx *fasthttp.RequestCtx) domai
return domain.Create().SetError(errors.New(msg))
}
if _, ok := routing.AllMethods[path]; !ok {
msg := "not implemented"
utils.WriteError(ctx, msg, codes.Unimplemented, nil)
return domain.Create().SetError(errors.New(msg))
if !p.SkipExistCheck() {
if _, ok := routing.AllMethods[path]; !ok {
msg := "not implemented"
utils.WriteError(ctx, msg, codes.Unimplemented, nil)
return domain.Create().SetError(errors.New(msg))
}
}
if !p.SkipAuth() {