Routes
POST /register
- Register a new userPOST /login
- Login userPOST /logout
- Logout userGET /books
- Get all booksGET /books/:id
- Get bookPOST /books
- Create book (admin permission required)PUT /books/:id
- Update book (admin permission required)DELETE /books/:id
- Delete book (admin permission required)GET /orders
- Get orders (admin gets all orders, user gets just personal orders)POST /orders
- Create order (No need negative quantity check)