diff --git a/history/histview/histview.go b/history/histweb/histview.go similarity index 98% rename from history/histview/histview.go rename to history/histweb/histview.go index eac459e..b0e2c31 100644 --- a/history/histview/histview.go +++ b/history/histweb/histview.go @@ -1,5 +1,5 @@ -// Package histview provides web stuff for history -package histview +// Package histweb provides web stuff for history +package histweb import ( "embed" diff --git a/history/histview/view_history.html b/history/histweb/view_history.html similarity index 100% rename from history/histview/view_history.html rename to history/histweb/view_history.html diff --git a/history/histview/view_primitive_diff.html b/history/histweb/view_primitive_diff.html similarity index 100% rename from history/histview/view_primitive_diff.html rename to history/histweb/view_primitive_diff.html diff --git a/history/histview/view_recent_changes.html b/history/histweb/view_recent_changes.html similarity index 100% rename from history/histview/view_recent_changes.html rename to history/histweb/view_recent_changes.html diff --git a/web/web.go b/web/web.go index e2d2e9d..80d2ff2 100644 --- a/web/web.go +++ b/web/web.go @@ -5,7 +5,7 @@ import ( "github.com/bouncepaw/mycorrhiza/backlinks" "github.com/bouncepaw/mycorrhiza/categories" "github.com/bouncepaw/mycorrhiza/help" - "github.com/bouncepaw/mycorrhiza/history/histview" + "github.com/bouncepaw/mycorrhiza/history/histweb" "github.com/bouncepaw/mycorrhiza/hypview" "github.com/bouncepaw/mycorrhiza/misc" "io" @@ -49,13 +49,12 @@ func Handler() http.Handler { initReaders(wikiRouter) initMutators(wikiRouter) - initHistory(wikiRouter) help.InitHandlers(wikiRouter) backlinks.InitHandlers(wikiRouter) categories.InitHandlers(wikiRouter) misc.InitHandlers(wikiRouter) hypview.Init() - histview.InitHandlers(wikiRouter) + histweb.InitHandlers(wikiRouter) // Admin routes. if cfg.UseAuth {