Remove static files

This commit is contained in:
video-prize-ranch
2022-01-28 18:46:02 -05:00
parent e3488c3527
commit 118b467eb9
23 changed files with 0 additions and 350 deletions

View File

@@ -12,7 +12,6 @@ import (
"github.com/aws/aws-lambda-go/lambda"
fiberadaptor "github.com/awslabs/aws-lambda-go-api-proxy/fiber"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"
"github.com/gofiber/template/handlebars"
"github.com/spf13/viper"
)
@@ -45,10 +44,6 @@ func init() {
StreamRequestBody: false,
})
app.Use("/static", filesystem.New(filesystem.Config{
Root: http.FS(static.GetFiles()),
}))
app.Get("/robots.txt", func(c *fiber.Ctx) error {
file, _ := static.GetFiles().ReadFile("robots.txt")
_, err := c.Write(file)