mirror of https://github.com/zer0bin-dev/zer0bin
✨ feature: Add cute banner to backend main
This commit is contained in:
parent
d5345b3798
commit
fe62570ce1
|
@ -43,5 +43,6 @@ pub struct LoggingConfig {
|
|||
|
||||
pub fn load(path: PathBuf) -> Config {
|
||||
let file = File::open(path).expect("Failed to load config");
|
||||
|
||||
serde_json::from_reader(file).unwrap()
|
||||
}
|
||||
|
|
|
@ -18,6 +18,10 @@ use crate::routes::{
|
|||
get_paste, get_raw_paste, get_stats, get_total_pastes_badge, get_version_badge, new_paste,
|
||||
};
|
||||
|
||||
const BANNER: &str = "▀▀█ █▀▀ █▀▀█ █▀▀█ █▀▀▄ ▀ █▀▀▄
|
||||
▄▀ █▀▀ █▄▄▀ █▄▀█ █▀▀▄ █ █ █
|
||||
▀▀▀ ▀▀▀ ▀ ▀▀ █▄▄█ ▀▀▀ ▀ ▀ ▀";
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct AppState {
|
||||
pub config: Config,
|
||||
|
@ -59,7 +63,8 @@ async fn main() -> io::Result<()> {
|
|||
|
||||
let state = AppState { config, pool };
|
||||
|
||||
println!("🚀 zer0bin is running on {address}");
|
||||
println!("{BANNER}");
|
||||
println!("🚀 Now running on {address}");
|
||||
|
||||
HttpServer::new(move || {
|
||||
let cors = Cors::default()
|
||||
|
|
Loading…
Reference in New Issue