diff options
author | FChannel <> | 2022-06-04 23:31:12 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | a87235f8b978126c0ca9f9eb252f58e6de17622c (patch) | |
tree | 592002dda3ac9f4ca1514eb0f473d31fb62faa84 /main.go | |
parent | e3c83c1ddaea5f42b6fda66d4b86459fd1349b3b (diff) |
news CRUD working
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |