Ruta de prueba

This commit is contained in:
Alexis
2026-03-22 13:10:48 +01:00
parent 8f06bf0c6b
commit 2d4779e68c
3 changed files with 8 additions and 2 deletions
Binary file not shown.
+8
View File
@@ -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"}
-2
View File
@@ -1,5 +1,3 @@
version: '3.8'
services: services:
backend: backend:
build: build: