mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 07:22:24 -05:00
Messing around a bit
This commit is contained in:
parent
9ffbb353d0
commit
c879e1b0b3
5 changed files with 30 additions and 11 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue