/api/admin/healthChecks admin API health and MongoDB connectivity.
This project now runs as a single API service. Next.js route handlers act as routers, controllers coordinate requests, services enforce business rules, repositories talk to MongoDB, and the shared workspace packages own the database connection and models.
/api/admin/healthChecks admin API health and MongoDB connectivity.
/api/admin/usersLists admin users with populated managed category relationships.
/api/admin/usersCreates a user and links it to categories through ObjectId references.
/api/admin/users/:idUpdates role, email, name, and managed category relationships.
/api/admin/categoriesLists categories with optional parent category population.
/api/admin/categoriesCreates a category and can attach it to another category as a parent.
/api/admin/productsLists products with populated category and creator references.
/api/admin/productsCreates a product and links it to both a category and the admin user who created it.
/api/public/healthChecks public API health and confirms the backend is reachable.
/api/public/productsReturns published products and supports filtering by category slug.
/api/public/products/:slugReturns one published product for client applications.