Add ability to follow hashtags (#336)
[akkoma] / lib / pleroma / web / router.ex
index 71a9e4d29febdcac4223d043bd874eaa1c6e6066..a34dd26ceb94d9f1a83023977491f29ec1d55c7f 100644 (file)
@@ -598,6 +598,10 @@ defmodule Pleroma.Web.Router do
 
     get("/announcements", AnnouncementController, :index)
     post("/announcements/:id/dismiss", AnnouncementController, :mark_read)
+
+    get("/tags/:id", TagController, :show)
+    post("/tags/:id/follow", TagController, :follow)
+    post("/tags/:id/unfollow", TagController, :unfollow)
   end
 
   scope "/api/web", Pleroma.Web do