rapid_web/
lib.rs

1pub use actix_cors as cors;
2pub use actix_files as files;
3pub use actix_web as actix;
4pub use actix_web_httpauth as auth;
5pub use default_routes::templates::WELCOME_TEMPLATE as welcome_view;
6pub use rapid_web_codegen;
7pub(crate) mod default_routes;
8pub mod logger;
9pub mod server;
10pub mod shift; // TODO: shift needs to be abstracted out into its own crate (for now it will be left private to rapid-web as users do not need to access it)
11pub(crate) mod tui;
12pub mod types;
13pub(crate) mod util;
14
15// Create new namings for every actix extractor (this is so that Shift can easily parse new route files and generate the correct typescript types)
16pub mod request {
17	pub use actix_web::web::{Json as RapidJson, Path as RapidPath, Query as RapidQuery};
18}
19// Authentication adapters are re-exported under the 'authentication' module
20// TODO: add support for auth0 and other providers here as well
21pub mod authentication {
22	pub use clerk_rs;
23}