upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/http/landing.rs
blob: 55ffb2635136dd3475eb45b31b77736dfd9f37a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Landing Page Handler
///
/// Generates HTML landing page for the Nostr relay.
use crate::config::Config;

/// Generate the HTML landing page
pub fn get_html(config: &Config) -> String {
    format!(
        include_str!("../../templates/landing.html"),
        relay_name = config.relay_name,
        relay_description = config.relay_description,
        domain = config.domain,
        bind_address = config.bind_address,
    )
}