discourse-follow/config/routes.rb
Osama Sayegh 902e770115 FEATURE: Introduce followed users posts feed (#8)
This commit adds a nav item under the Activity tab in user profile to show a feed of posts made by followed users.
2021-10-07 20:34:07 +03:00

7 lines
489 B
Ruby

# frozen_string_literal: true
Follow::Engine.routes.draw do
put ":username" => "follow#follow", constraints: { username: RouteFormat.username, format: /(json|html)/ }, defaults: { format: :json }
delete ":username" => "follow#unfollow", constraints: { username: RouteFormat.username, format: /(json|html)/ }, defaults: { format: :json }
get "posts/:username" => "follow#posts", constraints: { username: RouteFormat.username, format: /(json|html)/ }, defaults: { format: :json }
end