https://kind-blue-penguin-boot.cyclic.app/api/auth
https://kind-blue-penguin-boot.cyclic.app/auth/register register a a clinet throught he register page}
retuns a json with succes true is registed as well as the user information received as a response
https://kind-blue-penguin-boot.cyclic.app/auth/login
returns a js object with a success key set to true and the user informantion received as well as an json web access token which is valid for 3 days if login is successful else returns js object with success key set to false
https://kind-blue-penguin-boot.cyclic.app/users
Url : https://kind-blue-penguin-boot.cyclic.app/users/:id
send all users register with the store
only admin has access to this route
have to send the admin access token as a {header} while fetching
Url : https://kind-blue-penguin-boot.cyclic.app/users/find/:id
to find a customer with the customer id returns the customer info
only admin has access to this route
send accesstoken as {header} - {token = accestoken}
Url : https://kind-blue-penguin-boot.cyclic.app/users/:id
only admin has access to delete user
send id of the user to delete
Url : https://kind-blue-penguin-boot.cyclic.app/users/:id
admin and the user itself and modify itself
send id of the user to update
Url : https://kind-blue-penguin-boot.cyclic.app/users/changepass/pass
routes accessible to the admin and the user itself
route for changing the password
Url : https://kind-blue-penguin-boot.cyclic.app/users/
only accessible to the admin
gets a list of all the users registered with the store
Product related endpoints
Url : https://kind-blue-penguin-boot.cyclic.app/products
Url : https://kind-blue-penguin-boot.cyclic.app/products
get all products available in the store to display in the home page
Accessible to anybody weather logged in or not
Url : https://kind-blue-penguin-boot.cyclic.app/products/:id
get a particulart product by passing in the product id
used to display information of a product when client clicks
on a product in a new product page
Url : https://kind-blue-penguin-boot.cyclic.app/products
add new items to the store
Url : https://kind-blue-penguin-boot.cyclic.app/products/:id
Update info for a particular product
Url : https://kind-blue-penguin-boot.cyclic.app/products/:id
Delete a partcular product by passing in the product id
Url : https://kind-blue-penguin-boot.cyclic.app/carts
Url : https://kind-blue-penguin-boot.cyclic.app/carts
only logged in user has acces to their cart
used to a add items to a cart by the client
Url : https://kind-blue-penguin-boot.cyclic.app/carts/:id
pass in the userid as a {param} in url
to delete cart item by the client
Url : https://kind-blue-penguin-boot.cyclic.app/carts/:id
pass in the userid as {param}
change cart items by the client
Url : https://kind-blue-penguin-boot.cyclic.app/carts/:id
get cart info logged in user has access
pass in the iser id to get all card itema s then display them
Url : https://kind-blue-penguin-boot.cyclic.app/carts
get all carts of all users
Url : https://kind-blue-penguin-boot.cyclic.app/carts/:id
only logged in user has access to this
handles decrement against a cart item in the cart page