[Python] Merge html file with restapi

Discussão em 'Python' iniciado por Stack, Maio 17, 2025.

  1. Stack

    Stack Membro Participativo

    @app.post("/help/{id}/{surname}")
    def adduser(id:int,surname:str):
    cursor.execute("INSERT INTO Persons (personid,lastname) VALUES (%s,%s)",(id,surname))
    connect.commit()
    return "Added Succesfuly"


    I have created a RestAPI application and I made a login screen with html css how can I combine my restAPI app and html wepsite

    Continue reading...

Compartilhe esta Página