Relax root route matching

This is mostly unnecessary, and ensures users don't get confused when
their site doesn't show up because the server isn't seeing a
correctly-set Host header.
This commit is contained in:
Matt Baer 2018-11-08 10:17:17 -05:00
parent d7927779db
commit 9149e1f120
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func initRoutes(handler *Handler, r *mux.Router, cfg *config.Config, db *datasto
}
// Primary app routes
write := r.Host(hostSubroute).Subrouter()
write := r.PathPrefix("/").Subrouter()
// Federation endpoint configurations
wf := webfinger.Default(wfResolver{db, cfg})