From e67bd3989680be1ed9d7f0be1fb419540911a0c5 Mon Sep 17 00:00:00 2001 From: Ben Hall Date: Sun, 9 Feb 2025 15:11:37 +0000 Subject: [PATCH] disable import handler for now Signed-off-by: Ben Hall --- app/http/endpoints/api/export/import.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/http/endpoints/api/export/import.go b/app/http/endpoints/api/export/import.go index f19cf39..363ee3a 100644 --- a/app/http/endpoints/api/export/import.go +++ b/app/http/endpoints/api/export/import.go @@ -23,6 +23,9 @@ import ( ) func ImportHandler(ctx *gin.Context) { + ctx.JSON(401, "This endpoint is disabled") +} +func Importv2Handler(ctx *gin.Context) { // Parse request body from multipart form queryCtx, cancel := context.WithTimeout(context.Background(), time.Minute*1500) defer cancel()