@@ -32,12 +32,17 @@ app.add_middleware(
class q_req(BaseModel):
domain_name: str
+
class kw_req(BaseModel):
fullurl: str
+ shorturl: str
@app.post("/urldata")
async def get_domain_by_keyword(req:kw_req):
url=kw_req.fullurl
- print(url)
+ print(kw_req)
+ print(kw_req.fullurl)
+ print(kw_req.shorturl)
return "OK"