Your Name há 3 anos atrás
pai
commit
f8c25deb9f
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      step_question/apis/main.py

+ 5 - 0
step_question/apis/main.py

@@ -187,26 +187,31 @@ async def coffee_get():
 @app.get("/220")
 async def redirect220():
     response = RedirectResponse(url='/a1/index-line.html')
+    response.set_cookie(key="area", value="220", domain="q.ptt.cx")
     return response
 
 @app.get("/242")
 async def redirect242():
     response = RedirectResponse(url='/a1/index-line.html')
+    response.set_cookie(key="area", value="242", domain="q.ptt.cx")
     return response
 
 @app.get("/241")
 async def redirect241():
     response = RedirectResponse(url='/a1/index-line.html')
+    response.set_cookie(key="area", value="241", domain="q.ptt.cx")
     return response
 
 @app.get("/112")
 async def redirect112():
     response = RedirectResponse(url='/a1/index-line.html')
+    response.set_cookie(key="area", value="112", domain="q.ptt.cx")
     return response
 
 @app.get("/111")
 async def redirect111():
     response = RedirectResponse(url='/a1/index-line.html')
+    response.set_cookie(key="area", value="111", domain="q.ptt.cx")
     return response