An experimental IndieWeb site built in Go.

enable all microformat types

-13
-13
handlers/services.go
··· 9 9 "github.com/go-chi/chi/v5" 10 10 "github.com/go-chi/cors" 11 11 "go.hacdias.com/indielib/indieauth" 12 - "go.hacdias.com/indielib/microformats" 13 12 "go.hacdias.com/indielib/micropub" 14 13 ) 15 14 ··· 40 39 mpHandler := micropub.NewHandler( 41 40 mp, 42 41 micropub.WithMediaEndpoint(profileURL+"micropub/media"), 43 - micropub.WithGetPostTypes(func() []micropub.PostType { 44 - return []micropub.PostType{ 45 - { 46 - Name: "Post", 47 - Type: string(microformats.TypeNote), 48 - }, 49 - { 50 - Name: "Photo", 51 - Type: string(microformats.TypePhoto), 52 - }, 53 - } 54 - }), 55 42 ) 56 43 57 44 r.Route(path, func(r chi.Router) {