feature/separate-services #2

Merged
swapnil merged 3 commits from feature/separate-services into main 2024-01-24 13:27:18 +00:00
Showing only changes of commit fec1929d72 - Show all commits

View File

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