upda/server/api_handler_auth.go

20 lines
354 B
Go
Raw Permalink Normal View History

2023-12-21 16:04:04 +00:00
package server
import (
"git.myservermanager.com/varakh/upda/api"
2023-12-21 16:04:04 +00:00
"github.com/gin-gonic/gin"
"net/http"
)
type authHandler struct {
}
func newAuthHandler() *authHandler {
return &authHandler{}
}
func (h *authHandler) login(c *gin.Context) {
c.Header(api.HeaderContentType, api.HeaderContentTypeApplicationJson)
2023-12-21 16:04:04 +00:00
c.Status(http.StatusNoContent)
}