|
@@ -90,8 +90,8 @@ def get_hash(route):
|
|
|
_bytes = blake(data, person = person and person.encode('utf-8'))
|
|
|
return bytes_to_base32(_bytes)
|
|
|
|
|
|
-@route('/<route:re:(clip|goto|upload|code)>/normalize', method=['GET'])
|
|
|
-def normalize():
|
|
|
+@route('/<route:re:(clip|goto|upload)>/normalize', method=['GET'])
|
|
|
+def normalize(route):
|
|
|
_hash = request.params.hash
|
|
|
response.content_type = 'application/json'
|
|
|
return dumps({
|