예제 #1
0
    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
예제 #2
0
 def get(self):
     return {'stores': [x.json() for x in StoreModel.find_all()]}