cahnges
Browse files
app.py
CHANGED
@@ -129,30 +129,8 @@ def ExtractSkills(skill_data: SkillDetails):
|
|
129 |
from datetime import datetime
|
130 |
from typing import Union
|
131 |
from typing import Any, Union
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
full_name: Union[str, None] = None
|
138 |
-
|
139 |
-
|
140 |
-
class UserOut(BaseModel):
|
141 |
-
username: str
|
142 |
-
email: str
|
143 |
-
full_name: Union[str, None] = None
|
144 |
-
desc: str
|
145 |
-
|
146 |
-
class BaseUser(BaseModel):
|
147 |
-
username: str
|
148 |
-
email: str
|
149 |
-
full_name: Union[str, None] = None
|
150 |
-
|
151 |
-
|
152 |
-
class UserIn(BaseUser):
|
153 |
-
password: str
|
154 |
-
|
155 |
-
|
156 |
-
@app.post("/user/")
|
157 |
-
async def create_user(user: UserIn) -> BaseUser:
|
158 |
-
return user
|
|
|
129 |
from datetime import datetime
|
130 |
from typing import Union
|
131 |
from typing import Any, Union
|
132 |
+
from fastapi import FastAPI, Response
|
133 |
+
@app.get("/portal")
|
134 |
+
async def get_portal(teleport: bool = False) -> Response:
|
135 |
+
|
136 |
+
return JSONResponse(content={"message": "Here's your interdimensional portal." , "mes1":"data2"})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|