MSP-7322 Return httpMethod on get_by_id and set_list
This commit is contained in:
1 parent
c304645d60
commit
263a6f3952
1 file changed
+6
-4
@@ -62,8 +62,9 @@ func (s AccessList) GetById(ctx context.Context, appId int) ([]domain.MethodInfo
|
||||
methodInfos := make([]domain.MethodInfo, len(accessList))
|
||||
for i, access := range accessList {
|
||||
methodInfos[i] = domain.MethodInfo{
|
||||
Method: access.Method,
|
||||
Value: access.Value,
|
||||
HttpMethod: access.HttpMethod,
|
||||
Method: access.Method,
|
||||
Value: access.Value,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,8 +155,9 @@ func (s AccessList) SetList(ctx context.Context, req domain.AccessListSetListReq
|
||||
methodInfos := make([]domain.MethodInfo, len(accessList))
|
||||
for i, access := range accessList {
|
||||
methodInfos[i] = domain.MethodInfo{
|
||||
Method: access.Method,
|
||||
Value: access.Value,
|
||||
HttpMethod: access.HttpMethod,
|
||||
Method: access.Method,
|
||||
Value: access.Value,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user