|
@@ -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
|
|
|
|
|
|
|