Browse Source

fix normalize

Pi 4 months ago
parent
commit
300e81ad35
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rest/pyapi.py

+ 2 - 2
rest/pyapi.py

@@ -90,8 +90,8 @@ def get_hash(route):
     _bytes = blake(data, person = person and person.encode('utf-8'))
     _bytes = blake(data, person = person and person.encode('utf-8'))
     return bytes_to_base32(_bytes)
     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
     _hash = request.params.hash
     response.content_type = 'application/json'
     response.content_type = 'application/json'
     return dumps({
     return dumps({