diff --git a/cmd/server.go b/cmd/server.go index 724af2a..906cc2d 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -199,6 +199,8 @@ func RunServer() { groupAdmin.GET("", handleAdmin) + groupAdmin.GET("/documents/upload", handleAdminDocumentsUpload) + e.Logger.Fatal(e.Start( fmt.Sprintf(":%d", viper.GetInt("server.port")))) } @@ -717,7 +719,11 @@ func handlePublicDocumentation(c echo.Context) error { } func handleAdmin(c echo.Context) error { - return c.JSON(http.StatusNotImplemented, map[string]string{"message": "Not Implemented"}) + return c.Render(http.StatusOK, "admin-html", nil) +} + +func handleAdminDocumentsUpload(c echo.Context) error { + return c.Render(http.StatusOK, "admin-upload-html", nil) } // CSS Handlers diff --git a/public/html/admin-upload.gohtml b/public/html/admin-upload.gohtml new file mode 100644 index 0000000..e39f3b3 --- /dev/null +++ b/public/html/admin-upload.gohtml @@ -0,0 +1,14 @@ +{{ define "admin-upload-html" }} + + +
+ +