set up layout for the module

Co-authored-by: confused-ace-noises <confused-ace-noises@users.noreply.github.com>
This commit is contained in:
askiiart 2024-11-23 18:39:48 -06:00
parent 4a7dc28893
commit cdb0a82181
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
6 changed files with 87 additions and 68 deletions

View file

@ -18,15 +18,15 @@
//!
//! Note: I wrote the line above when I was tired. Don't ask me what *literal* truckloads of structs means, I don't know either.
mod api;
pub mod config;
pub mod api;
pub mod data;
use config::{Caps, Config};
use rocket;
use rocket::{self};
pub fn run(config: Config, caps: Caps) -> Result<bool, String> {
pub fn run(conf: data::Config, caps: data::Caps) -> Result<bool, String> {
/// Runs the server
rocket::build().mount("/", rocket::routes![api::caps]);
//rocket::build()
// .mount("/", rocket::routes![conf.caps])
// .launch();
return Ok(true);
}