Closed learndeviomartin closed 1 year ago
// create a middleware for this. Add it to all handlers that looks similar. Maybe add it in the auths stuff if (!req.user) { handleAPIResponse(res, [], "User auth") return }
// create a middleware for this. Add it to all handlers that looks similar. Maybe add it in the auths stuff if (!req.user) { handleAPIResponse(res, [], "User auth") return }