summaryrefslogtreecommitdiff
path: root/src/api.rs
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-24 12:00:24 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-24 12:00:24 +0100
commitc2786c4b9d704128da80ce4ed6513b9f5507b680 (patch)
treefe17ca91b195a7b55b4b30f343a5a6eea95a755e /src/api.rs
parent8c4de2ddac066a072f376e9f30409b114aa9978c (diff)
polishing
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/api.rs b/src/api.rs
deleted file mode 100644
index 1810f24..0000000
--- a/src/api.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use actix_web::{web, Scope};
-
-pub mod song;
-pub mod album;
-pub mod artist;
-pub mod search_results;
-
-pub fn api_scope() -> Scope {
- web::scope("/api")
- .service(song::get_song)
- .service(song::post_song)
- .service(song::put_song)
- .service(song::delete_song)
- .service(album::get_album)
- .service(album::post_album)
- .service(album::put_album)
- .service(album::delete_album)
- .service(artist::get_artist)
- .service(artist::post_artist)
- .service(artist::put_artist)
- .service(artist::delete_artist)
- .service(search_results::search_results)
-}