2021-12-08 15:31:52 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import (
|
2023-09-04 18:59:51 +00:00
|
|
|
"git.hackmi.ch/Phil/goshorly/db"
|
|
|
|
"git.hackmi.ch/Phil/goshorly/utils"
|
2021-12-08 15:31:52 +00:00
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Gethome(c *fiber.Ctx) error {
|
|
|
|
return c.Render("views/home", fiber.Map{
|
2022-01-11 11:05:07 +00:00
|
|
|
"CI_COMMIT_SHORT_SHA": utils.CI_COMMIT_SHORT_SHA,
|
|
|
|
"CI_COMMIT_BRANCH": utils.CI_COMMIT_BRANCH,
|
|
|
|
"CI_COMMIT_TAG": utils.CI_COMMIT_TAG,
|
|
|
|
"CI_TAGGED": utils.CI_TAGGED,
|
|
|
|
"CI_BUILD": utils.CI_BUILD,
|
|
|
|
"TotalLinks": db.GetTotalLinks(),
|
|
|
|
"TotalViews": db.GetTotalViews(),
|
2021-12-08 15:31:52 +00:00
|
|
|
})
|
|
|
|
}
|