bbox-core 0.6.0

Common functionality for BBOX services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::static_files::EmbedFile;
use actix_web::{web, Error};
use rust_embed::RustEmbed;
use std::path::PathBuf;

#[derive(RustEmbed)]
#[folder = "static/core/"]
struct CoreStatics;

pub(crate) async fn favicon() -> Result<EmbedFile, Error> {
    Ok(EmbedFile::open::<CoreStatics, _>(PathBuf::from(
        "favicon.ico",
    ))?)
}

pub fn register_endpoints(_cfg: &mut web::ServiceConfig) {}