Skip to content

Restructure API #241

@Kenneth-Ngcobo

Description

@Kenneth-Ngcobo
  • Put all DB functions in database.js
  • Rewrite DB functions to handle mongo logic and return results
  • API routes must make use of DB functions, and not handle Mongo logic themselves
  • Make API calls from client (front-end)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions