Skip to content

Commit

Permalink
Update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
IK-R-S authored Feb 18, 2024
1 parent c38a0aa commit 4cf9727
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ def home():
def about():
return {"PyPass API": "Password generator API for applications"}

@app.route('/generate/')
def generate_info():
return {"message": "insert a number of characters to generate your password", "demo": "https://pypass-api.vercel.app/generate/8"}

@app.route('/generate/<length>')
def generate(length):
password = generate_password(length)
Expand Down

0 comments on commit 4cf9727

Please sign in to comment.