22 lines
580 B
Rust
22 lines
580 B
Rust
pub mod contact;
|
|
|
|
pub mod endpoints {
|
|
pub const ROOT: &str = "/";
|
|
|
|
/// Constant for adding Contact endpoint
|
|
pub const ADD_CONTACT: &str = "/api/v1/contact/new";
|
|
/// Constant for getting Contact endpoint
|
|
pub const GET_CONTACT: &str = "/api/v1/contact";
|
|
/// Constant for updating names of a Contact endpoint
|
|
pub const UPDATE_CONTACT_NAME: &str = "/api/v1/contact/new";
|
|
}
|
|
|
|
pub mod response {
|
|
pub const SUCCESSFUL: &str = "SUCCESSFUL";
|
|
}
|
|
|
|
/// Basic handler that responds with a static string
|
|
pub async fn root() -> &'static str {
|
|
"Hello, World!"
|
|
}
|