fixed backend routes

This commit is contained in:
2024-03-24 16:55:12 +03:00
parent 0edcecd0f5
commit be07d304ee
3 changed files with 2 additions and 3 deletions

View File

@ -3,4 +3,4 @@ WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app /code/app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--root-path", "/api", "--reload"]

View File

@ -3,7 +3,6 @@ from pydantic import BaseModel
class UserBase(BaseModel):
username: str
email: str