Learn

Code Challenge

Instructions

1.

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.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?