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:
KD
2025-11-01 14:57:40 -04:00
committed by GitHub
parent f859eaf0a2
commit 7940527418
6 changed files with 22 additions and 26 deletions
+7
View File
@@ -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!"
}