We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d51849 commit 358212aCopy full SHA for 358212a
1 file changed
api/index.py
@@ -30,8 +30,7 @@ class handler(BaseHTTPRequestHandler):
30
31
def do_GET(self):
32
path = self.path
33
- pathreg = re.compile(r'/api?(.*?)')
34
- user = pathreg.findall(path)[0]
+ user = path.split('?')[1]
35
data = getdata(user)
36
self.send_response(200)
37
self.send_header('Content-type','application/json')
0 commit comments