なっく日報

技術やら生活やらのメモ

2016-03-30から1日間の記事一覧

Expressのapp.useが記述した順で動かない?

基本的には設定した順に動く v4からは公式(http://expressjs.com/en/4x/api.html)にある通り、 Middleware functions are executed sequentially, therefore the order of middleware inclusion is important. つまり、設定した順序でmiddlewareが適用される…