feat(backend): rouage gin /api/v1, enveloppe {data,meta}/{error}, health réel, stubs 501 + test de contrat routes

This commit is contained in:
m
2026-09-10 07:16:57 +02:00
parent 837bfa8a12
commit bdf1fadce9
13 changed files with 193 additions and 28 deletions
-1
View File
@@ -1 +0,0 @@
# Gin HTTP handlers land here (bind the routes, current 501 stubs).
+8
View File
@@ -0,0 +1,8 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func DevicesRegister(c *gin.Context) { api.NotImplemented(c) }
+12
View File
@@ -0,0 +1,12 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func FilesList(c *gin.Context) { api.NotImplemented(c) }
func FilesGet(c *gin.Context) { api.NotImplemented(c) }
func FilesDelete(c *gin.Context) { api.NotImplemented(c) }
func FilesSearch(c *gin.Context) { api.NotImplemented(c) }
func FilesUpload(c *gin.Context) { api.NotImplemented(c) }
+8
View File
@@ -0,0 +1,8 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func FoldersList(c *gin.Context) { api.NotImplemented(c) }
+10
View File
@@ -0,0 +1,10 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func Health(c *gin.Context) {
api.OK(c, gin.H{"status": "healthy"})
}
+9
View File
@@ -0,0 +1,9 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func OcrJobsCreate(c *gin.Context) { api.NotImplemented(c) }
func OcrJobsGet(c *gin.Context) { api.NotImplemented(c) }
+9
View File
@@ -0,0 +1,9 @@
package handlers
import (
"github.com/gin-gonic/gin"
"github.com/vaultdrop/backend/pkg/api"
)
func SyncOpsPush(c *gin.Context) { api.NotImplemented(c) }
func SyncPermissionsGet(c *gin.Context) { api.NotImplemented(c) }