diff --git a/cmd/handlers.go b/cmd/handlers.go index 43693b6..d505deb 100644 --- a/cmd/handlers.go +++ b/cmd/handlers.go @@ -51,8 +51,8 @@ func initHTTPHandlers(e *echo.Echo, app *App) { // Admin JS app views. // /admin/static/* file server is registered in initHTTPServer(). - g.GET("/", func(c echo.Context) error { - return c.Redirect(http.StatusPermanentRedirect, path.Join(adminRoot, "")) + e.GET("/", func(c echo.Context) error { + return c.Render(http.StatusOK, "home", publicTpl{Title: "listmonk"}) }) g.GET(path.Join(adminRoot, ""), handleAdminPage) g.GET(path.Join(adminRoot, "/*"), handleAdminPage) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 0feccf3..ca2e24a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -10,7 +10,9 @@ @@ -134,6 +136,7 @@