Change go-rimgu to rimgo

This commit is contained in:
video-prize-ranch
2022-01-17 17:34:05 -05:00
parent 34f09c36fb
commit 33e6c58ba3
4 changed files with 21 additions and 22 deletions

16
main.go
View File

@@ -4,9 +4,9 @@ import (
"log"
"net/http"
"codeberg.org/video-prize-ranch/go-rimgu/pages"
"codeberg.org/video-prize-ranch/go-rimgu/static"
"codeberg.org/video-prize-ranch/go-rimgu/views"
"codeberg.org/video-prize-ranch/rimgo/pages"
"codeberg.org/video-prize-ranch/rimgo/static"
"codeberg.org/video-prize-ranch/rimgo/views"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"
"github.com/gofiber/template/handlebars"
@@ -30,12 +30,12 @@ func main() {
if err != nil {
log.Fatal(err)
}
engine := handlebars.NewFileSystem(http.FS(views.GetFiles()), ".hbs")
app := fiber.New(fiber.Config{
Views: engine,
Prefork: viper.GetBool("FIBER_PREFORK"),
UnescapePath: true,
Views: engine,
Prefork: viper.GetBool("FIBER_PREFORK"),
UnescapePath: true,
StreamRequestBody: true,
})
@@ -51,4 +51,4 @@ func main() {
app.Get("/gallery/:galleryID", pages.HandleGallery)*/
app.Listen(":" + viper.GetString("RIMGU_PORT"))
}
}