jcorona48 / drizzle-astro

This is a simple demonstration to explore Drizzle and Astro.
https://drizzle-astro.vercel.app/
0 stars 0 forks source link

Change User URLs from ID to Slug #2

Closed jcorona48 closed 1 month ago

jcorona48 commented 1 month ago

Description:
Update the /users/[id] route to use a slug instead of an ID for cleaner, more descriptive URLs.

Tasks:

  1. Modify the database schema or logic to include a slug field for each user.
  2. Generate slugs dynamically when new users are created (e.g., based on the user’s name).
  3. Update the routing logic to replace [id] with [slug].
  4. Ensure existing functionality (viewing user details, linking) works with slugs.

Acceptance Criteria: