Can add a middleware that supports single routing
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)`` }`
Sure, you can separate the jwt related routes from others in API file.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.