[HttpGet("Inbox")]
[Authorise(Role = "me")]
public GetInbox() => store.Inbox
[HttpPost("Inbox")]
[AllowAnonymous]
public PostInbox(Message m) => store.Inbox.Add(m);
[HttpPost("Outbox")]
[Authorise(Role = "me")]
public PostOutbox(Message m) => m.To.Select(address => network.Post(address, message));
[HttpGet("Outbox")]
[AllowAnonymous]
public GetOutbox() => store.Outbox;
abstract class APObject {
[JsonPropery("@context")]
public string Context {get;set;} = "https://www.w3.org/ns/activitystreams";
[JsonProperty("id")]
public string? Id {get;set;} = default;
[JsonProperty("type")]
public string Type {get;set;}
}
abstract class Activity ; APObject {
}