1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
fedihub-website/src/main.rs
2020-10-14 05:01:25 +05:00

17 lines
323 B
Rust

#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
use rocket_contrib::templates::Template;
#[get("/")]
fn index() -> Template {
Template::render("index", &1)
}
fn main() {
rocket::ignite()
.attach(Template::fairing())
.mount("/", routes![index])
.launch();
}