summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 9dd4551e1a64ce627e9c3a814736ee6afa900693 (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().expect("failed to initialize_db");
    println!("connected with db");
    rocket::ignite()
        .mount(
            "/",
            routes![
                serve::token,
                serve::get_tracks,
                serve::match_users,
                serve::get_users
            ],
        )
        .launch();
}