mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-12 00:06:33 +02: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>/', methods=['GET'], defaults={'path': ''})
|
@application.route('/repository/<id>/', methods=['GET'], defaults={'path': ''})
|
||||||
@application.route('/repository/<id>/<path:path>', methods=['GET'])
|
@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):
|
def repository(id, path):
|
||||||
repo_path = self.config_dir + "/" + str(id)
|
repo_path = self.config_dir + "/" + str(id)
|
||||||
config_path = repo_path + "/config.json"
|
config_path = repo_path + "/config.json"
|
||||||
|
|||||||
Reference in New Issue
Block a user