go-cook-portal/handlers/auth.go

25 lines
419 B
Go
Raw Normal View History

2024-04-09 07:29:45 -07:00
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
}