Skip to content

Commit 2f4cbd7

Browse files
authored
feat: add api for get archive repo data (#161)
1 parent 8237cb1 commit 2f4cbd7

16 files changed

+1185
-158
lines changed

api/custom_response.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ func (response *JiaozifsResponse) Unauthorized() {
5151
response.WriteHeader(http.StatusUnauthorized)
5252
}
5353

54-
func (response *JiaozifsResponse) BadRequest(msg string) {
54+
func (response *JiaozifsResponse) BadRequest(msg string, args ...any) {
5555
response.WriteHeader(http.StatusBadRequest)
56-
_, _ = response.Write([]byte(msg))
56+
_, _ = response.Write([]byte(fmt.Sprintf(msg, args...)))
5757
}
5858

5959
// Error response with 500 and error message

0 commit comments

Comments
 (0)