Files
main/rules-v0-deprecated/htmx-go-fiber-cursorrules-prompt-file/fiber-routing-and-csrf-protection.mdc
2025-03-03 23:40:27 +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