v1.3.0: back: use lib for the request data
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
31da556505
commit
b0c6a8e0f9
3 changed files with 5 additions and 18 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
|
||||
"github.com/labstack/echo/v4"
|
||||
logins "gitlab.g3e.fr/h6n/users/internal"
|
||||
login_lib "gitlab.g3e.fr/h6n/users/lib/login"
|
||||
)
|
||||
|
||||
// Login
|
||||
|
|
@ -16,7 +17,7 @@ import (
|
|||
// @Param request body logins.RequestLogin true "request body"
|
||||
// @Success 200 {object} logins.ResponseLogin
|
||||
func login(c echo.Context) error {
|
||||
var request logins.RequestLogin
|
||||
var request login_lib.RequestLogin
|
||||
if err := c.Bind(&request); err != nil {
|
||||
return c.JSON(http.StatusBadRequest, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue