add authentication
Description
authenticating endpoints to use Bearer token
Steps to Test
run the application and try to call the endpoint without bearer token and see if it returns 401. Then call the endpoint with bearer token and see if it returns stuff.
Checklist (reviewers)
- Code review
- Manual test (if applicable)
- Tests added (if applicable)
- Documentation reviewed