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:
@@ -27,7 +27,7 @@ func initRoutes(handler *Handler, r *mux.Router, cfg *config.Config, db *datasto
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Primary app routes
|
// Primary app routes
|
||||||
write := r.Host(hostSubroute).Subrouter()
|
write := r.PathPrefix("/").Subrouter()
|
||||||
|
|
||||||
// Federation endpoint configurations
|
// Federation endpoint configurations
|
||||||
wf := webfinger.Default(wfResolver{db, cfg})
|
wf := webfinger.Default(wfResolver{db, cfg})
|
||||||
|
Reference in New Issue
Block a user