seagull-js / seagull

the core of the seagull framework
https://seagull-js.github.io/seagull/
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Express Routing enhancement #54

Open Harper04 opened 5 years ago

Harper04 commented 5 years ago

Currently routing takes a naive express way approach. First registered first served. Because we are registering by file listing our routing is defined by that order.

So we have no way to control / know which of the following routes will be executed: /* /api or: /api/todo/:id /api/todo/list

i see two ways:

or:

Aduril commented 5 years ago

PR: https://github.com/seagull-js/seagull/pull/58