- 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
This commit is contained in:
parent
cfa0566c6d
commit
12c9e17c4b
24 changed files with 1327 additions and 206 deletions
30
web/public/api/activitypub/collection.go
Normal file
30
web/public/api/activitypub/collection.go
Normal file
|
@ -0,0 +1,30 @@
|
|||
package activitypub
|
||||
|
||||
import "net/http"
|
||||
|
||||
// Used for both unordered and ordered
|
||||
type collectionOut struct {
|
||||
Context any
|
||||
Summary string
|
||||
Type string
|
||||
Items []any
|
||||
Id string
|
||||
TotalItems int
|
||||
First *collectionPageOut
|
||||
}
|
||||
|
||||
// Used for both unordered and ordered
|
||||
type collectionPageOut struct {
|
||||
Context any
|
||||
Type string
|
||||
Id string
|
||||
PartOf string
|
||||
Next string
|
||||
Items []any
|
||||
}
|
||||
|
||||
// Unordered collections handler
|
||||
func collections(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
// Ordered collections handler
|
||||
func orderedCollections(w http.ResponseWriter, r *http.Request) {}
|
Loading…
Add table
Add a link
Reference in a new issue