add hire/resume pages, contact form, security middleware, and admin improvements
This commit is contained in:
@@ -48,14 +48,22 @@ func main() {
|
||||
mux.HandleFunc("GET /infrastructure", h.Infrastructure)
|
||||
mux.HandleFunc("GET /status", h.Status)
|
||||
mux.HandleFunc("GET /about", h.About)
|
||||
mux.HandleFunc("GET /hire", h.Hire)
|
||||
mux.HandleFunc("POST /hire", h.HirePost)
|
||||
mux.HandleFunc("GET /resume", h.Resume)
|
||||
mux.HandleFunc("GET /sitemap.xml", h.Sitemap)
|
||||
|
||||
// Admin routes (auth handled per-handler)
|
||||
mux.HandleFunc("/admin", h.AdminDashboard)
|
||||
mux.HandleFunc("/admin/", h.AdminRouter)
|
||||
|
||||
srv := handler.Chain(mux,
|
||||
handler.LoggingMiddleware,
|
||||
handler.SecurityHeadersMiddleware,
|
||||
)
|
||||
|
||||
log.Printf("ridgwaysystems.org starting on :%s (DEV=%s)", port, os.Getenv("DEV"))
|
||||
log.Fatal(http.ListenAndServe(":"+port, mux))
|
||||
log.Fatal(http.ListenAndServe(":"+port, srv))
|
||||
}
|
||||
|
||||
// generateSyntaxCSS writes a chroma CSS file with light and dark themes.
|
||||
|
||||
Reference in New Issue
Block a user