move payload to own module

This commit is contained in:
marin postma 2021-06-23 14:56:02 +02:00
parent 834995b130
commit a838238a63
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
6 changed files with 79 additions and 75 deletions

View file

@ -7,9 +7,10 @@ use serde::Deserialize;
use serde_json::Value;
use crate::error::ResponseError;
use crate::extractors::payload::Payload;
use crate::helpers::Authentication;
use crate::routes::IndexParam;
use crate::{Data, Payload};
use crate::Data;
const DEFAULT_RETRIEVE_DOCUMENTS_OFFSET: usize = 0;
const DEFAULT_RETRIEVE_DOCUMENTS_LIMIT: usize = 20;