mirror of
https://github.com/aljazceru/haven.git
synced 2026-01-11 09:34:22 +01:00
Merge pull request #22 from bitvora/dev-fixStatic
avoid collisions in url
This commit is contained in:
6
main.go
6
main.go
@@ -99,7 +99,7 @@ func makeNewRelay(relayType string) *khatru.Relay {
|
||||
|
||||
mux := privateRelay.Router()
|
||||
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
mux.HandleFunc("/private", func(w http.ResponseWriter, r *http.Request) {
|
||||
tmpl := template.Must(template.ParseFiles("templates/index.html"))
|
||||
data := struct {
|
||||
RelayName string
|
||||
@@ -174,7 +174,7 @@ func makeNewRelay(relayType string) *khatru.Relay {
|
||||
|
||||
mux := chatRelay.Router()
|
||||
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
mux.HandleFunc("/chat", func(w http.ResponseWriter, r *http.Request) {
|
||||
tmpl := template.Must(template.ParseFiles("templates/index.html"))
|
||||
data := struct {
|
||||
RelayName string
|
||||
@@ -215,7 +215,7 @@ func makeNewRelay(relayType string) *khatru.Relay {
|
||||
|
||||
mux := inboxRelay.Router()
|
||||
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
mux.HandleFunc("/inbox", func(w http.ResponseWriter, r *http.Request) {
|
||||
tmpl := template.Must(template.ParseFiles("templates/index.html"))
|
||||
data := struct {
|
||||
RelayName string
|
||||
|
||||
Reference in New Issue
Block a user