1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
//! This model represents all the routes managed by Rocket.
//! Some routes may not be active: you may want to check [main.rs](/src/gtfs_server/main.rs.html)
//! for a list of enabled routes.

use r2d2::Pool;
use r2d2_postgres::PostgresConnectionManager;

pub struct RoutesHandler {
    pub pool: Pool<PostgresConnectionManager>,
}

use super::models::api as model_api;
use super::rocket_contrib::Json;
use rocket::State;

pub mod api;
pub mod ui;