✨ Able to read wordpress site
btw the 10 yrs ago package still work properly, amazing...
means the wordpress api did not change a lot and the golang backward
compability is amazing!
11 lines
195 B
Go
11 lines
195 B
Go
package api
|
|
|
|
import (
|
|
"git.solsynth.dev/hypernet/reader/pkg/internal/services"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func getNewsSources(c *fiber.Ctx) error {
|
|
return c.JSON(services.NewsSources)
|
|
}
|