update misc

This commit is contained in:
Ivan Office
2024-11-08 20:28:30 +08:00
parent 9041a4d74a
commit 8b67f67ae2
5 changed files with 7 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ class AppController(http.Controller):
# 返回这个图片的base64编码
return base64.b64encode(BytesIO(response.content).read())
@http.route(['/my/ua', '/wxa/ua', '/web/ua', '/web/ua/show'], auth='public', methods=['GET'])
@http.route(['/my/ua'], auth='public', methods=['GET'], sitemap=False)
def app_ua_show(self):
# https://github.com/selwin/python-user-agents
ua_string = request.httprequest.headers.get('User-Agent')