mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-16 21:18:51 +00:00
Remove static files
This commit is contained in:
5
main.go
5
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user