mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
reduce url length
This commit is contained in:
@@ -371,6 +371,9 @@ class Anonymous_Github:
|
||||
@application.route('/repository/<id>', methods=['GET'], defaults={'path': ''})
|
||||
@application.route('/repository/<id>/', methods=['GET'], defaults={'path': ''})
|
||||
@application.route('/repository/<id>/<path:path>', methods=['GET'])
|
||||
@application.route('/r/<id>', methods=['GET'], defaults={'path': ''})
|
||||
@application.route('/r/<id>/', methods=['GET'], defaults={'path': ''})
|
||||
@application.route('/r/<id>/<path:path>', methods=['GET'])
|
||||
def repository(id, path):
|
||||
repo_path = self.config_dir + "/" + str(id)
|
||||
config_path = repo_path + "/config.json"
|
||||
|
||||
Reference in New Issue
Block a user