Closed DowsingUK closed 1 month ago
import { TestService, getOptions } from './test.class'
import { appUploadsPath, appUploadsMethods } from './app-uploads.shared'
app.use(
testPath,
(req, res, next) => {
res.data = 'Step 1 worked'
next()
},
new TestService(getOptions(app)) as any, // THIS IS WORKING NOW
(req, res) => {
res.json({
message: Hello world from Express middleware ${res.data}
})
},
)
I could achieve this on FeathersJS v4 using this code:
Now I have no idea how to achieve the same on FeathersJS V5
Thanks for your help.