Skip to content

Commit

Permalink
feat: change search endpoint into a POST request instead of GET
Browse files Browse the repository at this point in the history
  • Loading branch information
simongoricar committed Mar 6, 2024
1 parent 9090364 commit 1d807bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kolomoni/src/api/v1/dictionary/search.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use actix_web::{get, web, Scope};
use actix_web::{post, web, Scope};
use kolomoni_search::SearchResult;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
Expand Down Expand Up @@ -71,7 +71,7 @@ impl_json_response_builder!(SearchResponse);
/// # Authentication
/// Authentication is not required on this endpoint.
#[utoipa::path(
get,
post,
path = "/dictionary/search",
tag = "dictionary:search",
request_body(
Expand All @@ -87,7 +87,7 @@ impl_json_response_builder!(SearchResponse);
openapi::InternalServerErrorResponse
)
)]
#[get("")]
#[post("")]
pub async fn perform_search(
state: ApplicationState,
request_body: web::Json<SearchRequest>,
Expand Down

0 comments on commit 1d807bd

Please sign in to comment.