aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-07-06 17:25:46 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-07-06 17:25:46 +0100
commit65084c50520310306ee44d25160762f27512a664 (patch)
tree8c6b89e03f58f4e17052fc80d5bf269e1fd425c9
parent00e0df7c87915c4b073626bffeead879166526a9 (diff)
Fix Riot Web embedding into Yggdrasil demo
-rw-r--r--cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go b/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go
index a9e04a31..e0f63b29 100644
--- a/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go
+++ b/cmd/dendrite-demo-yggdrasil/embed/embed_riotweb.go
@@ -19,7 +19,7 @@ func Embed(rootMux *mux.Router, listenPort int, serverName string) {
embeddedFS := _escFS(false)
embeddedServ := http.FileServer(embeddedFS)
- rootMux.Handle("/", embeddedServ)
+ rootMux.NotFoundHandler = embeddedServ
rootMux.HandleFunc("/config.json", func(w http.ResponseWriter, _ *http.Request) {
configFile, err := embeddedFS.Open("/config.sample.json")
if err != nil {