feat: 게임 파일 직접 업로드 방식으로 전환
All checks were successful
Server CI/CD / deploy (push) Successful in 35s
All checks were successful
Server CI/CD / deploy (push) Successful in 35s
- zip 스트리밍 업로드 (StreamRequestBody) → /data/game/game.zip 저장 - A301.exe SHA256 해시 자동 추출 (zip 분석) - 버전·파일명·크기 파일명 및 용량에서 자동 추출 - GET /api/download/file 엔드포인트 추가 - BASE_URL, GAME_DIR 환경변수 추가 - Dockerfile에 /data/game 디렉토리 생성 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -38,5 +38,6 @@ func Register(
|
||||
// Download
|
||||
dl := api.Group("/download")
|
||||
dl.Get("/info", dlH.GetInfo)
|
||||
dl.Put("/info", middleware.Auth, middleware.AdminOnly, dlH.Upsert)
|
||||
dl.Get("/file", dlH.ServeFile)
|
||||
dl.Post("/upload", middleware.Auth, middleware.AdminOnly, dlH.Upload)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user