Skip to content

Backend Refactoing #142

@nourshoreibah

Description

@nourshoreibah

Description

The backend should have service methods distinct from handler to make testing a little easier

Acceptance criteria

  • FIRST see what lambdas have PRs up. Do not refactor if a PR is up. If you can easily merge the PR (maybe it just needs one more review, get it through)
  • Refactor the backend so that there is a service layer. Add a file called _service.ts and a file called auth.ts
  • Auth should have functions to manage auth, service should contain service methods that actually do the operations
  • Layer these services together in the handler
  • Make separate test files for auth and service file. move tests to these files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions