Is there a way to chain middleware on "ordinary" firebase functions like in express?
"ordinary" function
addNote = https.onRequest((req, res, next) => {
addNote(req, res,next);
});
using express I chained isAuthenticated and validate middleware
app.post("addNote", isAuthenticated, validate, (req, res, next) => {
addNote(req, res, next);
}
);