aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-04 23:31:12 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commita87235f8b978126c0ca9f9eb252f58e6de17622c (patch)
tree592002dda3ac9f4ca1514eb0f473d31fb62faa84 /main.go
parente3c83c1ddaea5f42b6fda66d4b86459fd1349b3b (diff)
news CRUD working
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.go b/main.go
index 9ff4c54..8154998 100644
--- a/main.go
+++ b/main.go
@@ -63,13 +63,14 @@ func main() {
app.All("/"+config.Key+"/", routes.AdminIndex)
app.Get("/"+config.Key+"/follow", routes.AdminFollow)
app.Post("/"+config.Key+"/addboard", routes.AdminAddBoard)
- app.Get("/"+config.Key+"/newspost", routes.NewsPost)
- app.Get("/"+config.Key+"/newsdelete", routes.NewsDelete)
+ app.Post("/"+config.Key+"/newspost", routes.NewsPost)
+ app.Get("/"+config.Key+"/newsdelete/:ts", routes.NewsDelete)
app.All("/"+config.Key+"/:actor/follow", routes.AdminFollow)
app.Get("/"+config.Key+"/:actor", routes.AdminActorIndex)
// News routes
- app.Get("/news", routes.NewsGet)
+ app.Get("/news/:ts", routes.NewsGet)
+ app.Get("/news", routes.NewsGetAll)
// Board managment
app.Get("/banmedia", routes.BoardBanMedia)