From 7bd062230b43f8bd9cf2ec0f0db92704c5765f26 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 26 Apr 2021 15:42:39 +0000 Subject: major: :star: --- src/main.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main.rs (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..35af208 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,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 + ], + ) +} -- cgit v1.2.3