blob: 93a22a6f361aa2d7beee094393608592a0d36103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#![feature(proc_macro_hygiene, decl_macro)]
#![feature(try_trait)]
#[macro_use]
extern crate rocket;
#[macro_use]
extern crate lazy_static;
mod database;
mod errors;
mod serve;
mod spotify;
fn main() {
//database::initialize_db().unwrap();
println!("connected with db");
rocket::ignite()
.mount(
"/",
routes![
serve::token,
serve::get_tracks,
serve::match_users,
serve::get_users
],
)
.launch();
}
|