Skip to content

Commit

Permalink
remove cors on query endpoint (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-t-wang authored Oct 21, 2024
1 parent 200aef1 commit f0a61f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/api/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ pub fn handler() -> ApiRouter {

ApiRouter::new()
.api_route("/ens", post_with(ens_gateway, ens_gateway_docs))
.layer(cors)
.layer(cors.clone())
.api_route("/query", post_with(query_multiple, query_multiple_docs))
.layer(cors.clone())
.api_route("/rename", post_with(rename, rename_docs))
.api_route(
"/register",
Expand Down

0 comments on commit f0a61f0

Please sign in to comment.