Ruta de prueba
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/prueba")
|
||||
def ruta_de_prueba():
|
||||
# En FastAPI si devuelves un diccionario, se transforma a JSON
|
||||
return {"mensaje": "¡Hola desde FastAPI! El contenedor de docker está funcionando"}
|
||||
Reference in New Issue
Block a user