Files
main/rules-v0/htmx-go-fiber-cursorrules-prompt-file/fiber-routing-and-csrf-protection.mdc
T
2025-02-27 00:04:07 +05:30

8 lines
391 B
Plaintext

---
description: Focuses on routing, CSRF protection, context handling, and template usage within the internal handlers directory.
globs: internal/handlers/**/*.go
---
- Use Fiber's App.Get/Post/etc for routing HTMX requests
- Implement CSRF protection with Fiber middleware
- Utilize Fiber's Context for handling HTMX-specific headers
- Use Fiber's template engine for server-side rendering