summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 14:58:26 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-19 14:58:26 +0100
commit95b944b819d7a1320d3083929177676f93d4a3e3 (patch)
tree824e3baea0bf1f386a48ca3da587fbb334101e16 /src/main.rs
parent073149464269b5fcc90e282536c1a946ad474085 (diff)
add album and artist routes
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 9d6ec4f..bddb0b6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -31,6 +31,8 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(app_state.clone()))
.route("/", web::get().to(root))
.service(routes::song::song)
+ .service(routes::album::album)
+ .service(routes::artist::artist)
})
.bind(("127.0.0.1", 8000))?
.run()