aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 35af208e0b815eec4f661883e283f0d2b2b90209 (plain) (blame)
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
// Copyleft 2021-2021 The Senpy Club
// SPDX-License-Identifier: GPL-3.0-only

#![feature(proc_macro_hygiene, decl_macro, type_ascription)]

#[macro_use]
extern crate rocket;

pub mod constants;
pub mod routes;
pub mod structures;
pub mod utils;

#[launch]
fn rocket() -> _ {
  dotenv::dotenv().ok();

  rocket::build().mount("/", routes![routes::index]).mount(
    "/api/v1",
    routes![
      routes::github,
      routes::languages,
      routes::language,
      routes::random
    ],
  )
}