16 lines
324 B
Rust
16 lines
324 B
Rust
use rocket::{fs::FileServer, get, launch, routes};
|
|
use waifud::MainDatabase;
|
|
|
|
#[get("/")]
|
|
fn hello() -> &'static str {
|
|
"Hello, world!"
|
|
}
|
|
|
|
#[launch]
|
|
fn rocket() -> _ {
|
|
rocket::build()
|
|
.attach(MainDatabase::fairing())
|
|
.mount("/", routes![hello])
|
|
.mount("/static", FileServer::from("public"))
|
|
}
|