Skip to content

Commit

Permalink
feature [#161439619] allow for creation of new users
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 24, 2018
1 parent b1e3abf commit 2474423
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/api/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from flask import Flask, Blueprint
from flask_restful import Api
from .views import product_views, sale_views
from .views import product_views, sale_views, user_views
from app.instance.config import app_config

store_blueprint = Blueprint("store-man", __name__)
Expand All @@ -21,6 +21,9 @@ def create_app(config_setting):
api.add_resource(product_views.ProductAPI,
'/stman/api/v1.0/products/<int:id>',
endpoint='product')
api.add_resource(user_views.UsersAPI,
'/stman/api/v1.0/users/',
endpoint='users')

my_app.register_blueprint(store_blueprint)
return my_app

0 comments on commit 2474423

Please sign in to comment.