Skip to content

Commit

Permalink
Modify /update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
clementupshot committed Jul 11, 2024
1 parent 4fa5e0f commit 56140a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def check_create_table():


@app.route('/update/<token_name>/<token_from>/<token_to>')
def update_price(token_name, token_from, token_to):
@app.route('/update')
@app.route('/update/')
def update_price(token_name=TOKEN, token_from=TOKEN_CG_ID, token_to='usd'):
# Attempt initializing the token data if not already
try:
init_price_token(token_name, token_from, token_to)
Expand Down

0 comments on commit 56140a0

Please sign in to comment.