CS3219-AY2425S1 / cs3219-ay2425s1-project-g20

nus-cs3219-ay2425s1-cs3219-ay2425s1-project-project-template created by GitHub Classroom
MIT License
2 stars 1 forks source link

Implement backend routes to CRUD questions #14

Closed asaierika closed 3 weeks ago

asaierika commented 3 weeks ago

Implement routes in/src/routes/questions.ts.

asaierika commented 3 weeks ago

Would it be better to put it in a file in the src folder instead of the src/routes subfolder?

bachletuankhai commented 3 weeks ago

Would it be better to put it in a file in the src folder instead of the src/routes subfolder?

What is "it" you are referring to here?

asaierika commented 3 weeks ago

Would it be better to put it in a file in the src folder instead of the src/routes subfolder?

What is "it" you are referring to here?

I'm referring to the file /src/routes/questions.ts

bachletuankhai commented 3 weeks ago

Would it be better to put it in a file in the src folder instead of the src/routes subfolder?

What is "it" you are referring to here?

I'm referring to the file /src/routes/questions.ts

It's okay to have that routes folder. And with public and private routes, I think you even need to split the routes into 2 different routers and have 2 more subdirectory here.