Add login page

This commit is contained in:
Khanh Ngo 2020-04-24 11:22:50 +07:00
parent d017ea17c8
commit a78c9f3dd4
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
4 changed files with 92 additions and 0 deletions

View file

@ -14,6 +14,13 @@ import (
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)
// LoginPage handler
func LoginPage() echo.HandlerFunc {
return func(c echo.Context) error {
return c.Render(http.StatusOK, "login.html", map[string]interface{}{})
}
}
// WireGuardClients handler
func WireGuardClients() echo.HandlerFunc {
return func(c echo.Context) error {