Mumma6 / learndev

https://www.studify.dev
0 stars 0 forks source link

Add middleware for !user #23

Closed learndeviomartin closed 1 year ago

learndeviomartin commented 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 }