diff options
author | FChannel <> | 2022-05-02 12:44:41 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 1ee6552559141dd5dba91abec7c81d68c56abda0 (patch) | |
tree | 4ac21571a27980e8ebf83a065c270b36cc3ecfd6 /main.go | |
parent | 733f911fadc872933481bcbe087d519ce00372df (diff) |
removed all unneeded .go files from root directory
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |