mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	remove trailing slash in path
This commit is contained in:
		| @@ -54,7 +54,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) { | ||||
| /// Create an API Key. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Keys", | ||||
|     security(("Bearer" = ["keys.create", "keys.*", "*"])), | ||||
|     request_body = CreateApiKey, | ||||
| @@ -133,7 +133,7 @@ impl ListApiKeys { | ||||
| /// List all API Keys | ||||
| #[utoipa::path( | ||||
|     get, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Keys", | ||||
|     security(("Bearer" = ["keys.get", "keys.*", "*"])), | ||||
|     params(ListApiKeys), | ||||
|   | ||||
| @@ -121,7 +121,7 @@ pub struct AllBatches { | ||||
| /// Batch results are paginated and can be filtered with query parameters. | ||||
| #[utoipa::path( | ||||
|     get, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Batches", | ||||
|     security(("Bearer" = ["tasks.get", "tasks.*", "*"])), | ||||
|     params(TasksFilterQuery), | ||||
|   | ||||
| @@ -45,7 +45,7 @@ crate::empty_analytics!(DumpAnalytics, "Dump Created"); | ||||
| /// If the dump directory does not exist yet, it will be created. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Dumps", | ||||
|     security(("Bearer" = ["dumps.create", "dumps.*", "*"])), | ||||
|     responses( | ||||
|   | ||||
| @@ -41,7 +41,7 @@ pub fn configure(cfg: &mut web::ServiceConfig) { | ||||
| /// Get a list of all experimental features that can be activated via the /experimental-features route and whether or not they are currently activated. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Experimental features", | ||||
|     security(("Bearer" = ["experimental_features.get", "experimental_features.*", "*"])), | ||||
|     responses( | ||||
| @@ -126,7 +126,7 @@ impl Aggregate for PatchExperimentalFeatureAnalytics { | ||||
| /// Activate or deactivate experimental features. | ||||
| #[utoipa::path( | ||||
|     patch, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Experimental features", | ||||
|     security(("Bearer" = ["experimental_features.update", "experimental_features.*", "*"])), | ||||
|     responses( | ||||
|   | ||||
| @@ -135,7 +135,7 @@ impl ListIndexes { | ||||
| /// List all indexes. | ||||
| #[utoipa::path( | ||||
|     get, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Indexes", | ||||
|     security(("Bearer" = ["indexes.get", "indexes.*", "*"])), | ||||
|     params(ListIndexes), | ||||
| @@ -226,7 +226,7 @@ impl Aggregate for IndexCreatedAggregate { | ||||
| /// Create an index. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Indexes", | ||||
|     security(("Bearer" = ["indexes.create", "indexes.*", "*"])), | ||||
|     request_body = IndexCreateRequest, | ||||
|   | ||||
| @@ -30,7 +30,7 @@ pub fn configure(config: &mut web::ServiceConfig) { | ||||
| /// which means it must be enabled. | ||||
| #[utoipa::path( | ||||
|     get, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Stats", | ||||
|     security(("Bearer" = ["metrics.get", "metrics.*", "*"])), | ||||
|     responses( | ||||
|   | ||||
| @@ -48,7 +48,7 @@ pub struct SearchResults { | ||||
| /// Bundle multiple search queries in a single API request. Use this endpoint to search through multiple indexes at once. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Multi-search", | ||||
|     security(("Bearer" = ["search", "*"])), | ||||
|     responses( | ||||
|   | ||||
| @@ -39,7 +39,7 @@ crate::empty_analytics!(SnapshotAnalytics, "Snapshot Created"); | ||||
| /// Triggers a snapshot creation process. Once the process is complete, a snapshot is created in the snapshot directory. If the snapshot directory does not exist yet, it will be created. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Snapshots", | ||||
|     security(("Bearer" = ["snapshots.create", "snapshots.*", "*"])), | ||||
|     responses( | ||||
|   | ||||
| @@ -63,7 +63,7 @@ impl Aggregate for IndexSwappedAnalytics { | ||||
| /// Swapping indexA and indexB will also replace every mention of indexA by indexB and vice-versa in the task history. enqueued tasks are left unmodified. | ||||
| #[utoipa::path( | ||||
|     post, | ||||
|     path = "/", | ||||
|     path = "", | ||||
|     tag = "Indexes", | ||||
|     security(("Bearer" = ["search", "*"])), | ||||
|     request_body = Vec<SwapIndexesPayload>, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user