Your Name 4 лет назад
Родитель
Сommit
e90de370cd
1 измененных файлов с 25 добавлено и 0 удалено
  1. 25 0
      step_question/apis/main.py

+ 25 - 0
step_question/apis/main.py

@@ -184,6 +184,31 @@ async def coffee_get():
     return {'coffee':coffee}
     return {'coffee':coffee}
 
 
 
 
+@app.get("/220")
+async def redirect220():
+    response = RedirectResponse(url='/a1/index-line.html')
+    return response
+
+@app.get("/242")
+async def redirect242():
+    response = RedirectResponse(url='/a1/index-line.html')
+    return response
+
+@app.get("/241")
+async def redirect241():
+    response = RedirectResponse(url='/a1/index-line.html')
+    return response
+
+@app.get("/112")
+async def redirect112():
+    response = RedirectResponse(url='/a1/index-line.html')
+    return response
+
+@app.get("/111")
+async def redirect111():
+    response = RedirectResponse(url='/a1/index-line.html')
+    return response
+
 
 
 @app.get("/a1")
 @app.get("/a1")
 async def redirect():
 async def redirect():