def get() -> tuple: """ Returns a list of all stores in .db :return: All stores found in .db """ return { 'stores': [store.json() for store in StoreModel.find_all()] }, 200
def get(self): return {'stores': [x.json() for x in StoreModel.find_all()]}