FEATURE: Add API scope for listing topics in a category (#20471)
Adding an api scope for `/c/{slug}/{id}.json`. Without this you had to append `/l/latest` to the url in order for it to work with existing scopes.
This commit is contained in:
parent
c81d4f60af
commit
451ee71930
|
@ -6,7 +6,7 @@ class ApiKeyScope < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def list_actions
|
||||
actions = %w[list#category_feed]
|
||||
actions = %w[list#category_feed list#category_default]
|
||||
|
||||
%i[latest unread new top].each { |f| actions.concat(["list#category_#{f}", "list##{f}"]) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue