mirror of
https://github.com/Dvorinka/SEEN.git
synced 2026-06-05 04:53:01 +00:00
small fix, don't worry about it
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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,
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user