simonpweller / quotes-api

An easy-to-use API for fetching programming quotes.
0 stars 3 forks source link

Shift routes to separate routes file #5

Closed simonpweller closed 4 years ago

simonpweller commented 4 years ago

Currently the routes are all in the main app file, which will quickly become cluttered. Let's shift them to a separate file. There's an example of how this can be done in the express documentation: http://expressjs.com/en/guide/routing.html#express-router

Serhazor commented 4 years ago

QQ: Do you need to Routes file or the Routes folder ?

simonpweller commented 4 years ago

I think for now just a routes file will do since there's just a couple of them at them moment.

simonpweller commented 4 years ago

@Serhazor are you interested in opening a PR for this one?

Serhazor commented 4 years ago

I would be interested, yes. I've forked the repo and figuring out how to do it (I am complete newby in it, so bare with me :-))

simonpweller commented 4 years ago

No problem at all - take your time and give me a shout if I can help. I've just assigned it to you for now so others can see someone is already working on this.