diff --git a/cmd/main.go b/cmd/main.go index e9242c8..e0a67bd 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -49,36 +49,36 @@ func main() { http.FileServer(http.Dir(args.WebDir+"/static/")))) mux.HandleFunc("/", view.HomePage(args, db, store)) - mux.HandleFunc("GET /create-tag/", view.CreateTag(args)) - mux.HandleFunc("GET /create-user/", view.CreateUser(args)) - mux.HandleFunc("GET /edit-user/", view.EditUser(args, db, store)) - mux.HandleFunc("GET /hub/", view.ShowHub(args, db, store)) - mux.HandleFunc("GET /logout/", view.Logout(args, store)) - mux.HandleFunc("GET /publish-article/{id}/", view.PublishArticle(args, db, store)) - mux.HandleFunc("GET /publish-issue/", view.PublishLatestIssue(args, db, store)) - mux.HandleFunc("GET /reject-article/{id}/", view.RejectArticle(args, db, store)) - mux.HandleFunc("GET /rejected-articles/", view.ShowRejectedArticles(args, db, store)) - mux.HandleFunc("GET /review-rejected-article/{id}/", view.ReviewRejectedArticle(args, db, store)) - mux.HandleFunc("GET /review-unpublished-article/{id}/", view.ReviewUnpublishedArticle(args, db, store)) - mux.HandleFunc("GET /rss/", view.ShowRSS( + mux.HandleFunc("GET /create-tag", view.CreateTag(args)) + mux.HandleFunc("GET /create-user", view.CreateUser(args)) + mux.HandleFunc("GET /edit-user", view.EditUser(args, db, store)) + mux.HandleFunc("GET /hub", view.ShowHub(args, db, store)) + mux.HandleFunc("GET /logout", view.Logout(args, store)) + mux.HandleFunc("GET /publish-article/{id}", view.PublishArticle(args, db, store)) + mux.HandleFunc("GET /publish-issue", view.PublishLatestIssue(args, db, store)) + mux.HandleFunc("GET /reject-article/{id}", view.RejectArticle(args, db, store)) + mux.HandleFunc("GET /rejected-articles", view.ShowRejectedArticles(args, db, store)) + mux.HandleFunc("GET /review-rejected-article/{id}", view.ReviewRejectedArticle(args, db, store)) + mux.HandleFunc("GET /review-unpublished-article/{id}", view.ReviewUnpublishedArticle(args, db, store)) + mux.HandleFunc("GET /rss", view.ShowRSS( args, db, "Freimaurer Distrikt Niedersachsen und Sachsen-Anhalt", "https://distrikt-ni-st.de", "Freiheit, Gleichheit, Brüderlichkeit, Toleranz und Humanität", )) - mux.HandleFunc("GET /this-issue/", view.ShowCurrentArticles(args, db)) - mux.HandleFunc("GET /unpublished-articles/", view.ShowUnpublishedArticles(args, db)) - mux.HandleFunc("GET /write-article/", view.WriteArticle(args, db)) + mux.HandleFunc("GET /this-issue", view.ShowCurrentArticles(args, db)) + mux.HandleFunc("GET /unpublished-articles", view.ShowUnpublishedArticles(args, db)) + mux.HandleFunc("GET /write-article", view.WriteArticle(args, db)) - mux.HandleFunc("POST /add-first-user/", view.AddFirstUser(args, db, store)) - mux.HandleFunc("POST /add-tag/", view.AddTag(args, db, store)) - mux.HandleFunc("POST /add-user/", view.AddUser(args, db, store)) - mux.HandleFunc("POST /login/", view.Login(args, db, store)) - mux.HandleFunc("POST /resubmit-article/{id}/", view.ResubmitArticle(args, db, store)) - mux.HandleFunc("POST /submit-article/", view.SubmitArticle(args, db, store)) - mux.HandleFunc("POST /update-user/", view.UpdateUser(args, db, store)) - mux.HandleFunc("POST /upload-image/", view.UploadImage(args)) + mux.HandleFunc("POST /add-first-user", view.AddFirstUser(args, db, store)) + mux.HandleFunc("POST /add-tag", view.AddTag(args, db, store)) + mux.HandleFunc("POST /add-user", view.AddUser(args, db, store)) + mux.HandleFunc("POST /login", view.Login(args, db, store)) + mux.HandleFunc("POST /resubmit-article/{id}", view.ResubmitArticle(args, db, store)) + mux.HandleFunc("POST /submit-article", view.SubmitArticle(args, db, store)) + mux.HandleFunc("POST /update-user", view.UpdateUser(args, db, store)) + mux.HandleFunc("POST /upload-image", view.UploadImage(args)) log.Fatalln(http.ListenAndServe(args.Port, mux)) } diff --git a/web/templates/add-tag.html b/web/templates/add-tag.html index 52e84fa..e79865a 100644 --- a/web/templates/add-tag.html +++ b/web/templates/add-tag.html @@ -4,8 +4,8 @@
diff --git a/web/templates/add-user.html b/web/templates/add-user.html index 7f11f83..6866c99 100644 --- a/web/templates/add-user.html +++ b/web/templates/add-user.html @@ -44,8 +44,8 @@{{.Description}}
{{.Description}}