From a5a04fdd1042f6ce9c1bcbaff667f0efa5c103bb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 12 Jan 2021 20:05:06 +0000 Subject: [PATCH] Serve /_/shapelib.html Nothing links to this yet. Signed-off-by: Ian Jackson --- Makefile | 2 +- daemon/main.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9ec0ba65..3b5fd1f6 100644 --- a/Makefile +++ b/Makefile @@ -111,7 +111,7 @@ TS_SRC_FILES= \ LITFILES= LICENCE AGPLv3 TXTFILES= CC-BY-SA-3.0 CC-BY-SA-4.0 -FILEASSETS = $(addprefix templates/, libre script.js \ +FILEASSETS = $(addprefix templates/, libre shapelib.html script.js \ $(LITFILES) $(TXTFILES)) \ $(wildcard templates/*.tera) diff --git a/daemon/main.rs b/daemon/main.rs index 9ab6f925..4c34e740 100644 --- a/daemon/main.rs +++ b/daemon/main.rs @@ -48,6 +48,7 @@ const RESOURCES : &[(&'static str, ResourceLocation, ContentType)] = &[ ("script.js", RL::Main, ContentType::JavaScript), ("LICENCE", RL::Main, ContentType::Plain), ("libre", RL::Main, ContentType::HTML), + ("shapelib.html", RL::Main, ContentType::HTML), ("AGPLv3", RL::Main, ContentType::Plain), ("CC-BY-SA-3.0", RL::Main, ContentType::Plain), ("CC-BY-SA-4.0", RL::Main, ContentType::Plain), -- 2.30.2