|
@@ -91,6 +91,14 @@ async def root():
|
|
async def index():
|
|
async def index():
|
|
return FileResponse('index2.html')
|
|
return FileResponse('index2.html')
|
|
|
|
|
|
|
|
+
|
|
|
|
+@app.get("/keyword/{keyword}}")
|
|
|
|
+async def keyword(keyword):
|
|
|
|
+ print(keyword)
|
|
|
|
+ return "OK"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
@app.get("/random_kw")
|
|
@app.get("/random_kw")
|
|
async def random_kw():
|
|
async def random_kw():
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/yodb?charset=utf8mb4')
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/yodb?charset=utf8mb4')
|