diff options
author | 2021-03-02 12:46:48 +0100 | |
---|---|---|
committer | 2021-03-02 12:46:48 +0100 | |
commit | c879e1b0b378487d51b9cd520363f7538b02b2b5 (patch) | |
tree | f1a20db6cad591803e7a34ccb0efa06641603c6d /internal | |
parent | bits n bobs (diff) | |
download | gotosocial-c879e1b0b378487d51b9cd520363f7538b02b2b5.tar.xz |
Messing around a bit
Diffstat (limited to 'internal')
-rw-r--r-- | internal/ap/api.go | 8 | ||||
-rw-r--r-- | internal/client/router.go | 14 |
2 files changed, 13 insertions, 9 deletions
diff --git a/internal/ap/api.go b/internal/ap/api.go index 7e56b54e6..54f37a7c0 100644 --- a/internal/ap/api.go +++ b/internal/ap/api.go @@ -18,3 +18,11 @@ // Package ap provides ActivityPub/federation functionality for GoToSocial package ap + +import ( + "github.com/go-fed/activity/pub" +) + +func main() { + pub.NewFederatingActor() +} diff --git a/internal/client/router.go b/internal/client/router.go index a3353df62..b7c68ad0e 100644 --- a/internal/client/router.go +++ b/internal/client/router.go @@ -39,14 +39,10 @@ func (r *router) Route() { ginRouter.LoadHTMLGlob("web/template/*") apiGroup := ginRouter.Group("/api") - { - v1 := apiGroup.Group("/v1", { - statusesGroup := v1.Group("/statuses") - { - statusesGroup.GET(":id", statusGet) - } - - }) - } + + v1 := apiGroup.Group("/v1") + + statusesGroup := v1.Group("/statuses") + statusesGroup.GET(":id", statusGet) ginRouter.Run() } |