Spaces:
Sleeping
Sleeping
koenverhagen
commited on
Commit
•
d94a30f
1
Parent(s):
aa5362c
Update server.py
Browse files
server.py
CHANGED
@@ -5,6 +5,8 @@ from fastapi import FastAPI, Response, Request
|
|
5 |
from starlette.middleware.cors import CORSMiddleware
|
6 |
# import json
|
7 |
# from load_data import get_design_data, get_design_resolutions_for_shop
|
|
|
|
|
8 |
from createlookalike import create_feature_files
|
9 |
from schemas import Shop
|
10 |
|
@@ -39,8 +41,9 @@ def check_auth(authorization_header):
|
|
39 |
|
40 |
@app.get("/")
|
41 |
async def root():
|
42 |
-
return {"message": "where are you looking for?"}
|
43 |
-
|
|
|
44 |
|
45 |
|
46 |
|
|
|
5 |
from starlette.middleware.cors import CORSMiddleware
|
6 |
# import json
|
7 |
# from load_data import get_design_data, get_design_resolutions_for_shop
|
8 |
+
from starlette.responses import RedirectResponse
|
9 |
+
|
10 |
from createlookalike import create_feature_files
|
11 |
from schemas import Shop
|
12 |
|
|
|
41 |
|
42 |
@app.get("/")
|
43 |
async def root():
|
44 |
+
# return {"message": "where are you looking for?"}
|
45 |
+
response = RedirectResponse(url='/docs')
|
46 |
+
return response
|
47 |
|
48 |
|
49 |
|