A
A
Alexey Yarkov2017-02-18 16:36:08
API
Alexey Yarkov, 2017-02-18 16:36:08

How to correctly build routing in an express application?

I am rewriting the API server of one of my applications. I make it more convenient and more scalable. Will such a scheme work?
Scheme 1:
https://gist.github.com/yarkovaleksei/e12e9c48e8c9...
Or just like that?
Scheme 2:
https://gist.github.com/yarkovaleksei/bcab9122cff8...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
totosarg, 2017-02-19
@totosarg

The second sechma is more natural and will allow you to keep everything in greater order. But the choice is yours.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question