Seperate middleware in function - cannot use app.use()

后端 未结 0 661
栀梦
栀梦 2020-12-30 07:44

I´m trying to seperate a middleware in another file and function, but I cannot use app.use()for some reason.

import * as cors from \'cors\';

exp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题