Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

Commit

Permalink
Added route handling
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpan05 committed Mar 1, 2020
1 parent cae5c1f commit 74718ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

app = Flask(__name__)

@app.route('/<string:package>', defaults={'version': None}, methods=['GET'])
@app.route('/<string:package>/', defaults={'version': None}, methods=['GET'])
@app.route('/<string:package>/<string:version>', methods = ['GET'])
def get(package, version):
package = package.lower()
Expand Down

0 comments on commit 74718ce

Please sign in to comment.