---
# System prepended metadata

title: Backend Routes

---

# Backend Routes
Home Page:

- [x] GET (api/v1/categories) | Get all categories to display in the landing page

- [x] GET | /is-auth | to check the users' authorization and bring user data to handle at the website


contact Page:
- [x] post | (api/v1/contact){
  name,
  message,
  phone,
  categoryId,
  email
}

Categories:
- [x] GET | /Categories/:categoryId


- [x] POST | signup
- [x] POST | /signin

- [x] GET | /services | Get all rooms, cars, ... etc + all categories name + id only without description or images

Booking Page:
- [x] POST | Booking process {
userId
services [{roomId: 1, quantity: 2}],
time,
date,
}



Dashboard:
- [x] GET | /api/v1/contact | Get the contacts applications to display at the dashboard

- [ ] socket.io to refresh the requests
nodemailer to send an email to the user after confirming his booking


# Front Routes
- [x] home (/)
- [x] contact (/contact)
- [x] category (/category)
- [x] book (/book)
- [x] about (/about)
- [x] dashboard (/dashboard)
- [ ] user (/user)


## Components
- [x] - Navbar **Muhmd**
- [x] - Header **Jehad**
- [x] - CategoriesCardsContainer **Israa** 
- [x] - CategoriesCard **Israa**
- [x] - WhyUs (including WhyUsCard) **Mostafa**
- [x] - WhatTheySay (QuoteCardsContainer) **Muhmd**
- [x] - QuoteCard **Muhmd**
- [x] - Footer **Mostafa** / **Jehad**
- [x] - DescriptionCard (AboutUs Page - Categories Page) **Jehad** / **Mostafa**
- [x] - CategoryServices **Jehad**
- [x] - ContactUs Component **Mostafa** / **Israa**
- [x] - BookNow **Muhmd** / **Jehad** - **Israa** - **Muhmd**
- [x] - LoginComponent (Including Login & Signup) **Israa**


# For Dashboard

## Categories 
- [x] post | (api/v1/categories){
  name,
  description,
  image,
}

- [x] delete | (api/v1/categories){
  id
}
- [x] put | (api/v1/categories){
  id,
  name,
  description,
  image
}

## services
- [x] post | (api/v1/services){
  name,
  description,
  image,
  price,
  category_id
}

- [x] delete | (api/v1/services){
  id
}
- [x] put | (api/v1/services){
 id,
 name,
 description,
 image,
 price,
 category_id,
}

## Contact 
- [x] GET | (api/v1/contact)

## Book
- [x] GET | (api/v1/book)
- [x] GET | (api/v1/user/:id/book/)
- [x] GET | (api/v1/book/:id)
- [x] delete | (api/v1/book){
  id
}
- [ ] put | (api/v1/book){
 *********
}

