17 lines
265 B
Go
17 lines
265 B
Go
package handlers
|
|
|
|
import (
|
|
"kontor-api-gin/internal/service"
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AuthHandler struct {
|
|
Service *service.AuthService
|
|
}
|
|
|
|
func (handler *AuthHandler) Login(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"token": "bla"})
|
|
}
|