returns the index page of the website.
Returns form to login
Logs user into the application and takes them to the homepage "/"
- If the user is already signin, Response "You are already signed in"
- If the user types the wrong account/password, Response "Invalid credentials"
- If the user access with the wrong request method, Response "Bad Login Form"
Returns form to create an account
Creates a user with specified details
- If the password and password confirmation do not match, response "Password did not match"
- If the user types the wrong account/password, Response "Invalid Registration Request"
- If the user access with the wrong request method, Response "Method not allowed"
Logs the current user out "/"
- If the user is not logged in and try to sign out, response "Not logged In"
- If the user access with the wrong request method, Response "Method not allowed"
Returns all the current users addresses with the user profile in Array
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database."
Gets form to create a new address
Post a new address
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database."
Gets form to delete an address
Delete a new address for the user
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database." Method not allowed for the wrong request method
Gets form to edit an existing address
Updates the address and redirects to "account/address/"
If the user trys to change the wrong address, response You may only edit your own address
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid."
BadRequestMessage = "Bad request."
DatabaseErrorMessage = "Error interacting with database."
Method not allowed for the wrong request method
Gets all products in the specified collection and returns a page displaying them as well as links to the other collections.
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database."
Get all Products as array
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database." Method not allowed for the wrong request method
Returns the product details and renders them on a product page.
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database." Method not allowed for the wrong request method
When the user clicks "BUY" button, create a new order and get all orders made by the user
JSONDecodeFailMessage = "Error decoding JSON body. Please ensure your JSON file is valid." BadRequestMessage = "Bad request." DatabaseErrorMessage = "Error interacting with database." Method not allowed for the wrong request method
All of the "manage-site/" endpoints are only accessible if the user is an admin
Returns the manage Home page.
Returns the management page for products.
Returns the form to create a product on a web page.
Posts the form to create a new product.
Returns a page with product details and a form to update the product details.
Posts the form to update the product details.
Deletes the product.
Returns a page showing the product's images and a form to add a new image to the product.
Posts the form to add a new image to the product.
Deletes the specified image from the product.
Returns the page to manage collections for the site.
Returns a form to create a new collection for the site.
Posts the form to create the new collection.
Returns collection data and a form to update the given collections information.
Posts the form to update the collection information.
Deletes the given collection
Returns a page displaying all the orders and a link to go to a specific order to update.
Displays the order information and a form to update the order status.
Updates the order status.