coba landing page hanan

This commit is contained in:
Hanan Askarim
2024-04-29 14:45:12 +07:00
parent 99d7fd5159
commit 61788b3c85
8 changed files with 956 additions and 11 deletions

View File

@@ -46,6 +46,14 @@ func main() {
xh := handlers.NewXsampleHandler(xs)
handlers.SetupRoutesXsample(app, xh)
lStore, err := db.NewLandingPageStore(dbName)
if err != nil {
app.Logger.Fatalf("failed to create store: %s", err)
}
ls := services.NewServicesLandingPage(services.LandingPage{}, lStore)
lh := handlers.NewLandingPageHandler(ls)
handlers.SetupRoutesLandingPage(app, lh)
app.Logger.Fatal(app.Start(":5000"))
}