I have 2 models (TypeORM) that have a many-to-many relationship with each other: Post and Category.
I have created resources (nest g resource post, nest g resource category).
Is this a good way to create and delete many-to-many relationships? (Post controller):
POST request - /post/:id/category/:categoryId
DELETE request - /post/:id/category/:categoryId
Or is there some other better way? (e.g. creating another resource, creating a new controller and service...?)
Thanks