tangled
alpha
login
or
join now
graham.systems
/
space
0
fork
atom
An experimental IndieWeb site built in Go.
0
fork
atom
overview
issues
pulls
pipelines
enable all microformat types
Graham Barber
2 years ago
a9691944
c3e94782
-13
1 changed file
expand all
collapse all
unified
split
handlers
services.go
-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
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
43
-
micropub.WithGetPostTypes(func() []micropub.PostType {
44
44
-
return []micropub.PostType{
45
45
-
{
46
46
-
Name: "Post",
47
47
-
Type: string(microformats.TypeNote),
48
48
-
},
49
49
-
{
50
50
-
Name: "Photo",
51
51
-
Type: string(microformats.TypePhoto),
52
52
-
},
53
53
-
}
54
54
-
}),
55
42
)
56
43
57
44
r.Route(path, func(r chi.Router) {