sergeKashkin / crud-tutorial

0 stars 1 forks source link

FEAT: BE - Authentication routes #5

Open sergeKashkin opened 6 months ago

sergeKashkin commented 6 months ago

The purpose of this task is to create authentication routes for login and sign-up.

  1. Create new controller - auth.controller.ts
  2. Under this controller, implement 2 routes:
  3. POST auth/sign-up - body - { email: string; password: string; }
  4. POST auth/login - body - { email: string; password: string; }
  5. Create authentication service under auth.service.ts file.
  6. Make sure this service implements 2 methods - login(email: string, password: string), signup(email: string; password: string)
  7. Use the described methods under corresponding controller handlers.
  8. We'll continue with the logic later.