mirror of
https://github.com/mudler/LocalAGI.git
synced 2026-07-23 18:55:52 -04:00
1c083abc60
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
17 lines
261 B
Go
17 lines
261 B
Go
package views
|
|
|
|
import (
|
|
_ "embed"
|
|
"net/http"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
//go:embed login.html
|
|
var loginHTML []byte
|
|
|
|
func RenderLogin(c *fiber.Ctx) error {
|
|
c.Set("Content-Type", "text/html")
|
|
return c.Status(http.StatusUnauthorized).Send(loginHTML)
|
|
}
|