sockinit / console.blog

1 stars 0 forks source link

Functions being created inside of the routes. #24

Open sohilpandya opened 8 years ago

sohilpandya commented 8 years ago

https://github.com/sockinit/console.blog/blob/master/server/blogDB.js#L21-L51

the function retrieveBlogs, should be created outside, preferably in a different file and then be exported into this file, that way its stays modular and easy on the eyes.

What was the reason behind creating it and then using it straight away?

jay-meister commented 8 years ago

Thanks sohil, the latest version is modularised and has these issues sorted out (just not merged yet)