mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-12-13 19:55:21 +00:00
Add robots.txt
This commit is contained in:
6
main.go
6
main.go
@@ -43,6 +43,12 @@ func main() {
|
||||
Root: http.FS(static.GetFiles()),
|
||||
}))
|
||||
|
||||
app.Get("/robots.txt", func(c *fiber.Ctx) error {
|
||||
file, _ := static.GetFiles().ReadFile("robots.txt")
|
||||
_, err := c.Write(file)
|
||||
return err
|
||||
})
|
||||
|
||||
app.Get("/", pages.FrontpageHandler)
|
||||
app.Get("/:baseName.:extension", pages.HandleMedia)
|
||||
app.Get("/a/:galleryID", pages.HandleGallery)
|
||||
|
||||
Reference in New Issue
Block a user