bbox_core/
static_assets.rs

1use crate::static_files::EmbedFile;
2use actix_web::{web, Error};
3use rust_embed::RustEmbed;
4use std::path::PathBuf;
5
6#[derive(RustEmbed)]
7#[folder = "static/core/"]
8struct CoreStatics;
9
10pub(crate) async fn favicon() -> Result<EmbedFile, Error> {
11    Ok(EmbedFile::open::<CoreStatics, _>(PathBuf::from(
12        "favicon.ico",
13    ))?)
14}
15
16pub fn register_endpoints(_cfg: &mut web::ServiceConfig) {}