25 lines
419 B
Go
25 lines
419 B
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"templ-test/views"
|
||
|
|
||
|
"github.com/labstack/echo/v4"
|
||
|
)
|
||
|
|
||
|
func (h *Handlers) AuthLogin(c echo.Context) error {
|
||
|
return Render(c, http.StatusOK, views.AuthLogin())
|
||
|
}
|
||
|
|
||
|
func (h *Handlers) AuthLoginPost(c echo.Context) error {
|
||
|
// check the form data
|
||
|
//user := c.FormValue("email")
|
||
|
//password := c.FormValue("password")
|
||
|
|
||
|
// send request to the API
|
||
|
//h.api.
|
||
|
|
||
|
// render
|
||
|
return nil
|
||
|
}
|