Commit graph

11 commits

Author SHA1 Message Date
bb26ff763d
chore: restructured completely
kinda MVC:
Model -> model
View -> routes
Controller -> server
2024-04-09 01:14:48 +02:00
520c8eff3a
feat: separated apb types into crate, reworked
no more "impl ..." hell, each trait has associated types so that we know
it's a "Self::Link" or a "Self::Actor", but in practice they can both be
a "serde_json::Value" and thus we can change its type. also Node::Array
is now a Vec<T> rather than Vec<Node<T>> because it makes more sense.
Node is Iterable and will yield zero (Empty|Link), one (Object) or many
(Array) Ts
2024-04-06 16:56:13 +02:00
d5c73e85e8
fix: fetch activity case for non embedded 2024-03-26 02:46:10 +01:00
72c2cd5f81
chore: cleaned up all model modules 2024-03-23 06:32:15 +01:00
c4f677097b
fix: make @context addition explicit
also moved things around: object() is now into LD trait
2024-03-21 19:15:19 +01:00
bc182bdf70
fix: i checked the logs, content type ld+json...
was it really just this??? ffs
2024-03-21 03:07:35 +01:00
fe36ed2a52
feat: activity view embeds object 2024-03-21 01:42:29 +01:00
dcaf5d5c2b
feat: more compact _id methods, url! macro 2024-03-20 09:42:25 +01:00
178ad1b75d
fix: dedicated methods for uris
so i dont always wonder if its plural or not
2024-03-20 09:19:31 +01:00
5386c7ba7a
feat: allow specifying base domain 2024-03-20 08:56:35 +01:00
339d92986e
chore: moved AP routes in separate folder dir 2024-03-20 05:44:50 +01:00