main.py

I did the same for projects. I'm following the pattern

```
GET /resource
POST /resource
PUT | PATH /resource/:id
DELETE /resource/:id
```

Unless I did not understand your question.