mirror of
https://github.com/Dvorinka/SEEN.git
synced 2026-06-04 12:33:02 +00:00
23 lines
407 B
Go
23 lines
407 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type PlaceholderHandler struct{}
|
|
|
|
func NewPlaceholderHandler() *PlaceholderHandler {
|
|
return &PlaceholderHandler{}
|
|
}
|
|
|
|
func (h *PlaceholderHandler) NotImplemented(feature string) gin.HandlerFunc {
|
|
return func(c *gin.Context) {
|
|
c.JSON(http.StatusNotImplemented, gin.H{
|
|
"error": "not implemented",
|
|
"feature": feature,
|
|
})
|
|
}
|
|
}
|