Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -4,21 +4,10 @@ import ( "log" "github.com/gofiber/fiber/v2" - "github.com/gofiber/template/html/v2" ) func main() { - engine := html.New("./views", ".html") - - app := fiber.New(fiber.Config{ - Views: engine, - }) - - app.Get("/", func(c *fiber.Ctx) error { - return c.Render("index", fiber.Map{ - "Title": "Демо-материал после демон-аэропорта", - }) - }) + app := fiber.New() app.Static("/", "./public") |