Finished?? Editor

This commit is contained in:
Caleb Gardner
2024-11-14 11:25:44 -06:00
parent 123551c109
commit 7c7f3bd131
3 changed files with 183 additions and 34 deletions
+6
View File
@@ -152,10 +152,16 @@ func setupWebsite(mux *http.ServeMux) {
mux.HandleFunc("GET /portfolio", portfolioRequest)
mux.HandleFunc("GET /list", blogListHandle)
err := setupEditorTemplates()
if err != nil {
log.Println("error setting up editor templates:", err)
return
}
// Editor stuff
mux.HandleFunc("GET /login", loginPageRequest)
mux.HandleFunc("GET /editor/", editorRequest)
mux.HandleFunc("GET /editor/edit", editorEdit)
mux.HandleFunc("POST /editor/post", editorPost)
mux.HandleFunc("POST /login", trueLoginRequest)
}