vimalloc / flask-jwt-simple

A barebones Flask extension for creating and protecting endpoints with JWT
MIT License
69 stars 12 forks source link

how to add prefix like prefix="/api/v1" #2

Closed Firues closed 6 years ago

Firues commented 6 years ago

Hello! Dear vimalloc, can i add prefix like prefix="/api/v1" to my flask-jwt-simple for all requests? (sorry for stupid question) Thank u for all!

vimalloc commented 6 years ago

You can accomplish this with flask blueprints and the url_prefix argument (it is outside of the scope for this extension). You can read more about those flask options here: http://flask.pocoo.org/docs/0.12/blueprints/#registering-blueprints