Some checks failed
/ docker (push) Failing after 2m57s
- Read handler for create activities (notes only so far) - Read handler for note objects - Structure laid out for other objects, activities and collections - DB structure for activities created - Update access logging TODO: Create collections type in DB to describe a collection group
22 lines
686 B
Go
22 lines
686 B
Go
package activitypub
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func BuildActivitypubRouter() http.Handler {
|
|
router := http.NewServeMux()
|
|
router.HandleFunc("/user/{id}", users)
|
|
router.HandleFunc("/user/{id}/inbox", userInbox)
|
|
router.HandleFunc("/activity/accept/{id}", activityAccept)
|
|
router.HandleFunc("/activity/create/{id}", activityCreate)
|
|
router.HandleFunc("/activity/delete/{id}", activityDelete)
|
|
router.HandleFunc("/activity/reject/{id}", activityReject)
|
|
router.HandleFunc("/activity/update/{id}", activityUpdate)
|
|
router.HandleFunc("/note/{id}", objectNote)
|
|
router.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
_, _ = fmt.Fprint(w, "in ap")
|
|
})
|
|
return router
|
|
}
|