2 Commits
10 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ COPY pyproject.toml ./
RUN pip install --no-cache-dir --upgrade pip && \ RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir fastapi uvicorn pip install --no-cache-dir fastapi uvicorn
COPY src ./src COPY app ./src
EXPOSE 3671 EXPOSE 3671
+1 -1
View File
@@ -23,7 +23,7 @@ avvia i servizi e il server locale
docker compose up -d mongodb redis docker compose up -d mongodb redis
``` ```
```bash ```bash
fastapi dev src/main.py fastapi dev app/main.py
``` ```
accedi a FastAPI su: [FastAPI docs](http://localhost:3671/docs) accedi a FastAPI su: [FastAPI docs](http://localhost:3671/docs)
View File
+1 -1
View File
@@ -1,6 +1,6 @@
from fastapi import FastAPI from fastapi import FastAPI
from src.proxy.router import router as proxy_router from api.proxy import router as proxy_router
app = FastAPI( app = FastAPI(
title="thePlugAPI" title="thePlugAPI"
View File
@@ -1,5 +1,3 @@
from typing import Literal
from utils.proxy.types import ServiceConfig from utils.proxy.types import ServiceConfig
@@ -7,6 +5,6 @@ async def create_proxy(
port: int, port: int,
name: str, name: str,
service: ServiceConfig, service: ServiceConfig,
proxy_type: Literal["easy", "manual"] code: str
): ):
return return