create templ login

This commit is contained in:
Hanan Askarim
2024-04-30 13:10:53 +07:00
parent b3883c9a8d
commit 3281472f67
9 changed files with 582 additions and 348 deletions

View File

@@ -38,6 +38,14 @@ func main() {
handlers.SetupRoutes(app, h)
LStore, err := db.NewLoginStore(dbName)
if err != nil {
app.Logger.Fatalf("failed to create store: %s", err)
}
l := services.NewServicesLogin(services.Login{}, LStore)
lh := handlers.NewLoginHandler(l)
handlers.SetupRoutesLogin(app, lh)
xStore, err := db.NewXsampleStore(dbName)
if err != nil {
app.Logger.Fatalf("failed to create store: %s", err)