File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55from security import authenticate , identity
66from resources .user import UserRegister
77from resources .item import Item , ItemList
8- from resources .store import Store
8+ from resources .store import Store , StoreList
99
1010app = Flask (__name__ )
1111app .config ['SQLALCHEMY_DATABASE_URI' ] = 'sqlite:///data.db'
1212app .config ['SQLALCHEMY_TRACK_MODIFICATIONS' ] = False
13- app .secret_key = 'jose '
13+ app .secret_key = 'EiEiO '
1414api = Api (app )
1515
1616@app .before_first_request
@@ -20,6 +20,7 @@ def create_tables():
2020jwt = JWT (app , authenticate , identity ) # /auth
2121
2222api .add_resource (Store , '/store/<string:name>' )
23+ api .add_resource (StoreList , '/stores' )
2324api .add_resource (Item , '/item/<string:name>' )
2425api .add_resource (ItemList , '/items' )
2526api .add_resource (UserRegister , '/register' )
You can’t perform that action at this time.
0 commit comments