My goal here is to create my first REST API in Go following the modules layout available in the documentation and using MongoDB.
It's a simple CRUD application that exposes the following endpoints:
POST
/user/new
GET
/user/{id}
PUT
/user/{id}
DELETE
/user/{id}
POST
/login
POST
/logout
POST
/tasks/new
GET
/tasks/{id}
GET
/tasks/
PUT
/tasks/{id}
DELETE
/tasks/{id}