Skip to content

Commit 3a0e730

Browse files
committed
엔드포인트 수정
1 parent bf5d04b commit 3a0e730

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ COPY . .
1313
RUN pip install --no-cache-dir -r requirements.txt
1414

1515
# FastAPI 실행
16-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
16+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "4886"]

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class RepoRequest(BaseModel):
3636

3737

3838
# README 생성 API
39-
@app.post("/api/career/readme")
39+
@app.post("/api/github-service/readme")
4040
async def GenerateReadme(request: RepoRequest):
4141
try:
4242
# README 쓰기
@@ -71,7 +71,7 @@ async def GenerateReadme(request: RepoRequest):
7171

7272

7373
# README 다운로드 요청 처리 API
74-
@app.get("/api/career/download")
74+
@app.get("/api/github-service/download")
7575
async def DownloadFile(downloadURL: str):
7676
async with httpx.AsyncClient() as client:
7777
try:
@@ -102,7 +102,7 @@ async def DownloadFile(downloadURL: str):
102102

103103

104104
# Tag 생성 API
105-
@app.post("/api/career/tag")
105+
@app.post("/api/github-service/tag")
106106
async def GenerateTag(request: RepoRequest):
107107
try:
108108
githubURL = request.git_url
@@ -130,7 +130,7 @@ async def GenerateTag(request: RepoRequest):
130130

131131

132132
# 유저가 올린 모든 github 정보 읽기
133-
@app.get("/api/career/db/user")
133+
@app.get("/api/github-service/db/user")
134134
async def ReadUserGithub(userID: int):
135135
try:
136136
data = ReadGithubFromUserID(userID)
@@ -147,7 +147,7 @@ async def ReadUserGithub(userID: int):
147147
)
148148

149149

150-
@app.get("/api/career/db/readme")
150+
@app.get("/api/github-service/db/readme")
151151
async def ReadREADME(userID: int, gitURL: str):
152152
try:
153153
# README 데이터 읽기
@@ -194,6 +194,6 @@ async def ReadREADME(userID: int, gitURL: str):
194194

195195

196196
# 헬스 체크
197-
@app.get("/api/career/health-check")
197+
@app.get("/api/github-service/health-check")
198198
async def HealthCheck():
199199
return {"status": 200, "message": "서버 상태 확인", "data": "Working"}

0 commit comments

Comments
 (0)