2023-12-21 16:04:04 +00:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
2024-06-11 21:47:30 +00:00
|
|
|
"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) {
|
2024-06-11 21:47:30 +00:00
|
|
|
c.Header(api.HeaderContentType, api.HeaderContentTypeApplicationJson)
|
2023-12-21 16:04:04 +00:00
|
|
|
c.Status(http.StatusNoContent)
|
|
|
|
}
|