diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-22 14:10:08 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-22 14:10:08 +0100 |
commit | 6a7a49fb3804d0d27bbaee08b6feb26b4973b4bc (patch) | |
tree | 8a08c15301965bb4ea3bfbab54468e2879db9ad5 /src/api.rs | |
parent | c277e9937115cc1473219a04199566c7bfdcbaf7 (diff) |
Diffstat (limited to 'src/api.rs')
-rw-r--r-- | src/api.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/api.rs b/src/api.rs new file mode 100644 index 0000000..1810f24 --- /dev/null +++ b/src/api.rs @@ -0,0 +1,23 @@ +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) +} |