1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// std imports
use Arc;
// 3rd party imports
use ;
// internal imports
use crateConfiguration;
use crateAppState;
/// Returns the configuration with which MaCPepDB was created.
///
/// # Arguments
/// * `configuration` - MaCPepDB configuration
///
/// # API
/// ## Request
/// * Path: `/api/configuration`
/// * Method: `GET`
///
/// ## Response
/// ```json
/// {
/// "enzyme_name": "trypsin",
/// "max_number_of_missed_cleavages": 2,
/// "min_peptide_length": 5,
/// "max_peptide_length": 60,
/// "remove_peptides_containing_unknown": true,
/// "partition_limits": [
/// 565249110009,
/// 593899929397,
/// 622550748785,
/// 651201568173,
/// 678101346913,
/// ...
/// 6028263516592,
/// 6349645610325,
/// 11164758778800
/// ]
/// }
/// ```
///
pub async