mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-02-22 10:18:28 +01:00
first commit
This commit is contained in:
parent
b21d7aedf9
commit
2a04ecccc4
@ -20,6 +20,14 @@ use crate::Opt;
|
||||
#[macro_export]
|
||||
macro_rules! make_setting_route {
|
||||
($route:literal, $update_verb:ident, $type:ty, $err_ty:ty, $attr:ident, $camelcase_attr:literal, $analytics:ident) => {
|
||||
#[allow(dead_code)]
|
||||
|
||||
pub fn verify_field_exists(settings: Settings) {
|
||||
match settings {
|
||||
Settings { $attr: _, .. } => {}
|
||||
}
|
||||
}
|
||||
|
||||
pub mod $attr {
|
||||
use actix_web::web::Data;
|
||||
use actix_web::{web, HttpRequest, HttpResponse, Resource};
|
||||
|
Loading…
x
Reference in New Issue
Block a user