Skip to content

Commit

Permalink
fix: refactor model backend endpoint (#36)
Browse files Browse the repository at this point in the history
Because

- list models endpoint should be protected

This commit

- move `GET /models` into `jwt-auth` protected endpoints
  • Loading branch information
xiaofei-du committed Apr 26, 2023
1 parent c7a74b6 commit 6a3283f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions config/settings-env/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,17 @@
},
"model": {
"jwt_auth": [
{
"endpoint": "/v1alpha/models",
"url_pattern": "/v1alpha/models",
"method": "GET",
"timeout": "30s",
"input_query_strings": [
"view",
"page_size",
"page_token"
]
},
{
"endpoint": "/v1alpha/models/{model_id}",
"url_pattern": "/v1alpha/models/{model_id}",
Expand Down Expand Up @@ -759,17 +770,6 @@
"method": "GET",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/models",
"url_pattern": "/v1alpha/models",
"method": "GET",
"timeout": "30s",
"input_query_strings": [
"view",
"page_size",
"page_token"
]
}
],
"grpc_auth": [
Expand Down

0 comments on commit 6a3283f

Please sign in to comment.