feat(backend): rouage gin /api/v1, enveloppe {data,meta}/{error}, health réel, stubs 501 + test de contrat routes
This commit is contained in:
@@ -1 +0,0 @@
|
||||
# Gin HTTP handlers land here (bind the routes, current 501 stubs).
|
||||
@@ -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) }
|
||||
@@ -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) }
|
||||
@@ -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) }
|
||||
@@ -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"})
|
||||
}
|
||||
@@ -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) }
|
||||
@@ -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) }
|
||||
Reference in New Issue
Block a user