package main import ( "net/http" "github.com/CalebQ42/darkstorm-server/internal/backend" ) const ( blogTitle = "
%v
" ) func latestBlogsHandle(w http.ResponseWriter, r *http.Request) {} func blogHandle(w http.ResponseWriter, r *http.Request, blog string) { bl, err := blogApp.Blog(blog) if err != nil { if err == backend.ErrNotFound { w.WriteHeader(404) sendIndexWithContent(w, "Page not found") return } w.WriteHeader(http.StatusInternalServerError) sendIndexWithContent(w, "Error getting page") return } }