Skip to content

Commit

Permalink
Router: Use POST with Sentry to prevent drive by hits
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Dec 17, 2024
1 parent 82b3460 commit 2f066f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/commentthan/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (app *appEnv) router(svc *service) http.Handler {
srv := http.NewServeMux()
srv.Handle("GET /", rr.notFound())
srv.Handle("GET /api/healthcheck", rr.healthCheck())
srv.Handle("GET /api/sentrycheck", rr.sentryCheck())
srv.Handle("POST /api/sentrycheck", rr.sentryCheck())
srv.Handle("POST /comment", rr.postComment())

fs.WalkDir(static.FS, ".", func(path string, d fs.DirEntry, err error) error {
Expand Down

0 comments on commit 2f066f3

Please sign in to comment.