So I need to split multiple routing groups. I just want to specify an interface under the same routing group that requires jwt verification. Other interfaces do not need to
For example in the following example, I need the add, getById method jwt check。No other method is needed
@server(
prefix: book/v1
group: book
)
service book-api{
jwt: JwtAuth
@handler add
post /add (AddBookReq) returns (AddBookResp)
jwt: JwtAuth
@handler getById
get /get(GetBookByIdReq) returns (GetBookByIdResp)
@handler getByIdList
post /getIdList(GetBookByIdListReq) returns (GetBookByIdListResp)` }
So I need to split multiple routing groups. I just want to specify an interface under the same routing group that requires jwt verification. Other interfaces do not need to For example in the following example, I need the add, getById method jwt check。No other method is needed @server( prefix: book/v1 group: book ) service book-api{ jwt: JwtAuth @handler add post /add (AddBookReq) returns (AddBookResp) jwt: JwtAuth @handler getById get /get(GetBookByIdReq) returns (GetBookByIdResp) @handler getByIdList post /getIdList(GetBookByIdListReq) returns (GetBookByIdListResp)
` }