recover basic login demo paths

This commit is contained in:
Zeni Kim 2026-05-16 10:55:02 -05:00
parent 911c1ce734
commit f5ab92b1cf
2 changed files with 26 additions and 3 deletions

View file

@ -47,8 +47,27 @@ func WelcomeHome(c *core.Context) *core.Response {
}
// Show dashboard
func WelcomeToDashboard(c *core.Context) *core.Response {
message := "{\"message\": \"Welcome to Dashboard\"}"
return c.Response.Json(message)
}
// Show basic app login
func AppLogin(c *core.Context) *core.Response {
// first, include all compoments
// first, include all compoments
type templateData struct {
PageCard components.PageCard
}
// now fill data of the components
tmplData := templateData{
PageCard: components.PageCard{
CardTitle: "Card title",
CardBody: "Loerm ipsum at deim",
},
}
return c.Response.Template("login.html", tmplData)
}