Unify error handling and HTTP statuses
Signed-off-by: Sean Du <do4suki@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
honokautils "honoka-chan/internal/utils"
|
||||
pkgutils "honoka-chan/pkg/utils"
|
||||
"math/big"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"time"
|
||||
@@ -67,7 +68,7 @@ func lot(ctx *gin.Context) {
|
||||
Token: randomLive.Token,
|
||||
},
|
||||
ReleaseInfo: []any{},
|
||||
StatusCode: 200,
|
||||
StatusCode: http.StatusOK,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user