blob: 1810f24f0fa6f8bba471a985b2f9efbb53385041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
}
|