jaspermayone-archive / heptagram-api

Basic API, designed and coded for the @Heptagram-Bot-Project
http://api.heptagrambotproject.com
Eclipse Public License 2.0
2 stars 8 forks source link

Add joi validation to the user schema #141

Open Sukriti-m opened 2 years ago

Sukriti-m commented 2 years ago

I will add the joi validation to the user schema

Please assign this issue to me and add the 'hacktoberfest' label to it.

jaspermayone commented 2 years ago

Sounds good @Sukriti-m!

ank1traj commented 2 years ago

@j-dogcoder Assign it to me.

ank1traj commented 2 years ago

@j-dogcoder Can you provide the .env file?

jaspermayone commented 2 years ago

I don't provide access to those things. The repo should have a sample.env

ank1traj commented 2 years ago

Getting 401 error on every API call @j-dogcoder

jaspermayone commented 2 years ago

What are you calling? (What url)

ank1traj commented 2 years ago

:v4/jokes

jaspermayone commented 2 years ago

it is /v4 not :

jaspermayone commented 2 years ago

@ank1traj

ank1traj commented 2 years ago

@j-dogcoder It was like localhost:3000/v4/jokes. So, I removed the url with ':' and added slug only

jaspermayone commented 2 years ago

The full url should be http://localhost:3000/v4/jokes

ank1traj commented 2 years ago

I know but getting unauthorised and even after signup login is not working for me