Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-ap/webfinger
https://github.com/go-ap/webfinger
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/go-ap/webfinger
- Owner: go-ap
- License: mit
- Created: 2022-11-22T07:57:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T17:53:26.000Z (about 2 months ago)
- Last Synced: 2024-11-10T18:36:44.431Z (about 2 months ago)
- Language: Go
- Size: 136 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webfinger handlers on top of Go-ActivityPub storage
This project can be used as a standalone application or as a package from an external project.
Usage:
```go
// .well-known
cfg := NodeInfoConfig()
ni := nodeinfo.NewService(cfg, NodeInfoResolverNew(a.front.storage))
h := webfinger.handler{}// Web-Finger
r.Route("/.well-known", func(r chi.Router) {
r.Get("/webfinger", h.HandleWebFinger)
r.Get("/host-meta", h.HandleHostMeta)
r.Get("/nodeinfo", ni.NodeInfoDiscover)
})
r.Get("/nodeinfo", ni.NodeInfo)
```