I´m trying to seperate a middleware in another file and function, but I cannot use app.use()for some reason.
app.use()
import * as cors from \'cors\'; exp