chore: restructure project directory and update Dockerfile paths

This commit is contained in:
2026-04-12 00:18:38 +02:00 Unverified
parent b3e97c197e
commit 96e5a7e17b
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 && \
pip install --no-cache-dir fastapi uvicorn
COPY src ./src
COPY app ./src
EXPOSE 3671
+1 -1
View File
@@ -23,7 +23,7 @@ avvia i servizi e il server locale
docker compose up -d mongodb redis
```
```bash
fastapi dev src/main.py
fastapi dev app/main.py
```
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 src.proxy.router import router as proxy_router
from api.proxy import router as proxy_router
app = FastAPI(
title="thePlugAPI"
View File
@@ -1,5 +1,3 @@
from typing import Literal
from utils.proxy.types import ServiceConfig
@@ -7,6 +5,6 @@ async def create_proxy(
port: int,
name: str,
service: ServiceConfig,
proxy_type: Literal["easy", "manual"]
code: str
):
return