How can I organize my API?

Hi everyone!

I am trying to make a MERN project and right now I’m trying to make the schemas for my blog. I was wondering for the API, should the file contain the CRUD operations for blogs and comments. Or should I create separate files for CRUD blog operations and CRUD comments operations?

Thanks and Happy New Year :slight_smile:

Are you just asking if the location of the CRUD code should be in different files?

I think organizing it in different files makes sense.