mirror of
https://github.com/writeas/writefreely
synced 2025-01-05 20:47:30 +01:00
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:
parent
d7927779db
commit
9149e1f120
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user