Skip to Content
Express Middleware Code Challenges
Code Challenge

Code Challenge



The current API has public data that should be accessible to anybody, and private data that should be only accessed by admin users. Currently, users can access any data, but the isAdmin middleware function should be able to help. Use this function in any route that accesses the secretData object.

Folder Icon

Sign up to start coding

Already have an account?