|
@@ -189,7 +189,7 @@ async def create_upload_file(file: UploadFile = File(...)):
|
|
|
image.save(cover_img_dir+img_name+'.jpg')
|
|
|
return {"msg": serverADDR+cover_img_dir+img_name+'.jpg'}
|
|
|
|
|
|
-@app.get("/email_interest")
|
|
|
+@app.post("/email_interest")
|
|
|
async def email_interest(email_tag:Email_tag):
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/openTalk?charset=utf8mb4')
|
|
|
email_table = db['interest_email']
|