The flask API has a blueprint named admin but it currently has only one route to fetch system meta information. More routes are required and an admin authentication system is required.
Requirements
Create complete admin authentication API in admin blueprint with a new admin model
Create a function in helpers.py to authenticate an admin user
Use above function to change route /api/stories/all to admin only
Context
The flask API has a blueprint named admin but it currently has only one route to fetch system meta information. More routes are required and an admin authentication system is required.
Requirements
helpers.py
to authenticate an admin user/api/stories/all
to admin only