Compare commits

..

No commits in common. "fec1929d7294ddeb01affd2cd58ffd1302a96a40" and "a17303347f349d92746090e21553dcdd2ff8ac9f" have entirely different histories.

View File

@ -17,9 +17,8 @@ class Token(db.Model):
def __repr__(self):
return f'<Token {self.id}>'
# Create an application context
with app.app_context():
db.create_all()
# Initialize the database
db.create_all()
# API to create a new token entry
@app.route('/token', methods=['POST'])