✨ 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!
14 lines
233 B
Go
14 lines
233 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func MapAPIs(app *fiber.App, baseURL string) {
|
|
api := app.Group(baseURL).Name("API")
|
|
{
|
|
api.Get("/well-known/sources", getNewsSources)
|
|
api.Get("/link/*", getLinkMeta)
|
|
}
|
|
}
|