예제 #1
0
 async def rest_peutil_hdl(self, request):
     path = request.rel_url.path
     pim = re.search(r"pim(\d)", path).group(1)
     return web.json_response(
         rest_peutil.get_peutil(pim),
         dumps=dumps_bytestr,
     )
예제 #2
0
 async def rest_peutil_hdl(self, request):
     return web.json_response(rest_peutil.get_peutil(), dumps=dumps_bytestr)