DEVELOPMENT ENVIRONMENT

~liljamo/ulairi

ref: e78be1f39347874c13c8ff1c08025ec375b5e928 ulairi/ulairi-api/src/main.rs -rw-r--r-- 494 bytes
e78be1f3Jonni Liljamo I lost the old commit history... 1 year, 11 months ago
                                                                                
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
28
29
30
#![feature(decl_macro)]

#[macro_use]
extern crate diesel;
#[macro_use]
extern crate rocket;
#[macro_use]
extern crate rocket_contrib;
#[macro_use]
extern crate dotenv_codegen;

mod db;

mod hour_entries;
mod roles;
mod users;

pub mod schema;

fn main() {
    println!("Starting server...");

    let mut rocket = rocket::ignite().manage(db::init_pool());

    rocket = users::mount(rocket);
    rocket = roles::mount(rocket);
    rocket = hour_entries::mount(rocket);

    rocket.launch();
}