headless_lms_server/controllers/study_registry/mod.rs
1/*!
2Handlers for HTTP requests to `/api/v0/study-registry`.
3
4The study registry provides an access to student completion records. It is generally only available
5to authorized study registries, meaning that most endpoints will require a valid authorization token
6to access.
7
8When accessing study registry, the authorization token should be given as the following header:
9```http
10Authorization: Basic documentationOnlyExampleSecretKey-12345
11```
12
13For more details, please view the submodules.
14*/
15
16use actix_web::web::{self, ServiceConfig};
17
18pub mod completion_registered_to_study_registry;
19pub mod completions;
20
21/// Add controllers from all the submodules.
22#[doc(hidden)]
23pub fn _add_routes(cfg: &mut ServiceConfig) {
24 cfg.service(
25 web::scope("/completion-registered-to-study-registry")
26 .configure(completion_registered_to_study_registry::_add_routes),
27 )
28 .service(web::scope("/completions").configure(completions::_add_routes));
29}