Open saloua-kd opened 1 year ago
Task 1: Implement the API route for creating a new category. Task 2: Validate and process the request payload. Task 3: Store the new category in the database. Task 4: Return a response with the newly created category data.
verify token of admin , using "tokenCheck" middleware !!!!
Task 1: Implement the API route for creating a new category. Task 2: Validate and process the request payload. Task 3: Store the new category in the database. Task 4: Return a response with the newly created category data.