add skip for check exist method && handler for user methods
This commit is contained in:
1 parent
08c4fb9bee
commit
91a14f9f23
14 files changed
+136
-87
No files matched your search
+6
-4
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user