tsk-208: Moving config and endpoint code (#236)
* tsk-208: Moving config and endpoint code * tsk-208: Code formatting * tsk-208: Version bump * tsk-208: Accidentally changed port
This commit was merged in pull request #236.
This commit is contained in:
@@ -3,6 +3,8 @@ 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";
|
||||
@@ -17,3 +19,8 @@ pub mod endpoints {
|
||||
pub mod response {
|
||||
pub const SUCCESSFUL: &str = "SUCCESSFUL";
|
||||
}
|
||||
|
||||
/// Basic handler that responds with a static string
|
||||
pub async fn root() -> &'static str {
|
||||
"Hello, World!"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user