add atom feed support
This commit is contained in:
@ -10,13 +10,16 @@ import (
|
||||
|
||||
func CorsMiddleware(c *fiber.Ctx) error {
|
||||
c.Set("Access-Control-Allow-Origin", "*")
|
||||
c.Set("Access-Control-Allow-Headers", "Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
|
||||
c.Set("Access-Control-Allow-Headers",
|
||||
"Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, accept, origin, Cache-Control, X-Requested-With")
|
||||
c.Set("Access-Control-Allow-Methods", "PUT, DELETE, GET")
|
||||
return c.Next()
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := fiber.New()
|
||||
app := fiber.New(fiber.Config{
|
||||
DisableStartupMessage: true,
|
||||
})
|
||||
app.Use(CorsMiddleware)
|
||||
|
||||
db, err := sql.Open("sqlite3", "data.db")
|
||||
|
Reference in New Issue
Block a user