aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-02 12:44:41 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit1ee6552559141dd5dba91abec7c81d68c56abda0 (patch)
tree4ac21571a27980e8ebf83a065c270b36cc3ecfd6 /main.go
parent733f911fadc872933481bcbe087d519ce00372df (diff)
removed all unneeded .go files from root directory
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 363a88f..c83ba10 100644
--- a/main.go
+++ b/main.go
@@ -84,7 +84,7 @@ func main() {
app.Post("/:actor", routes.ActorPost)
app.Get("/:actor/catalog", routes.CatalogGet)
app.Get("/:actor/:post", routes.PostGet)
- app.Get("/:actor/inbox", routes.ActorInbox)
+ app.Post("/:actor/inbox", routes.ActorInbox)
app.Post("/:actor/outbox", routes.ActorOutbox)
app.Get("/:actor/following", routes.ActorFollowing)
app.Get("/:actor/followers", routes.ActorFollowers)
@@ -183,14 +183,14 @@ func TemplateFunctions(engine *html.Engine) {
return fmt.Sprint(t.Unix())
})
- engine.AddFunc("proxy", MediaProxy)
+ engine.AddFunc("proxy", util.MediaProxy)
// previously short
engine.AddFunc("shortURL", util.ShortURL)
- engine.AddFunc("parseAttachment", ParseAttachment)
+ engine.AddFunc("parseAttachment", post.ParseAttachment)
- engine.AddFunc("parseContent", ParseContent)
+ engine.AddFunc("parseContent", post.ParseContent)
engine.AddFunc("shortImg", util.ShortImg)