disable import handler for now

Signed-off-by: Ben Hall <ben@benh.codes>
This commit is contained in:
Ben Hall 2025-02-09 15:11:37 +00:00
parent 0c21d57e2b
commit e67bd39896

View File

@ -23,6 +23,9 @@ import (
) )
func ImportHandler(ctx *gin.Context) { func ImportHandler(ctx *gin.Context) {
ctx.JSON(401, "This endpoint is disabled")
}
func Importv2Handler(ctx *gin.Context) {
// Parse request body from multipart form // Parse request body from multipart form
queryCtx, cancel := context.WithTimeout(context.Background(), time.Minute*1500) queryCtx, cancel := context.WithTimeout(context.Background(), time.Minute*1500)
defer cancel() defer cancel()