Skip to content

marriage endpoints

Latest
Compare
Choose a tag to compare
@wenhoujx wenhoujx released this 04 Jan 18:48
· 4 commits to main since this release

i added a new set of endpoint called marriage, where two users can get married, divorced, and check their marriage status.

I use this as an example, how to layer services and routes, especially when they have dependencies.

the service are actually DAOs
the routes.service are actual services that uses various DAOs.
the routes handles HTTP, and errors.

added more tests and refactored previous tests.