make go actually serve up robots.txt
This commit is contained in:
parent
0e2d2893de
commit
180d708200
2 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -593,6 +593,10 @@ func main() {
|
||||||
return c.SendFile("templates/index.html")
|
return c.SendFile("templates/index.html")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.Get("/robots.txt", func(c *fiber.Ctx) error {
|
||||||
|
return c.SendFile("templates/robots.txt")
|
||||||
|
})
|
||||||
|
|
||||||
app.Get("/artists.html", func(c *fiber.Ctx) error {
|
app.Get("/artists.html", func(c *fiber.Ctx) error {
|
||||||
return c.SendFile(HTMLFilename)
|
return c.SendFile(HTMLFilename)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue