* tsk-208: Moving config and endpoint code * tsk-208: Code formatting * tsk-208: Version bump * tsk-208: Accidentally changed port
27 lines
800 B
Rust
27 lines
800 B
Rust
pub mod coverart;
|
|
pub mod queue;
|
|
pub mod song;
|
|
|
|
pub mod endpoints {
|
|
pub const ROOT: &str = "/";
|
|
|
|
pub const CREATESONG: &str = "/api/v2/song";
|
|
pub const GETSONGS: &str = "/api/v2/song";
|
|
pub const GETALLSONGS: &str = "/api/v2/song/all";
|
|
pub const STREAMSONG: &str = "/api/v2/song/stream/{id}";
|
|
pub const DOWNLOADSONG: &str = "/api/v2/song/download/{id}";
|
|
pub const DELETESONG: &str = "/api/v2/song/{id}";
|
|
pub const CREATECOVERART: &str = "/api/v2/coverart";
|
|
pub const GETCOVERART: &str = "/api/v2/coverart";
|
|
pub const DOWNLOADCOVERART: &str = "/api/v2/coverart/download/{id}";
|
|
}
|
|
|
|
pub mod response {
|
|
pub const SUCCESSFUL: &str = "SUCCESSFUL";
|
|
}
|
|
|
|
/// Basic handler that responds with a static string
|
|
pub async fn root() -> &'static str {
|
|
"Hello, World!"
|
|
}
|