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:
Blake Erickson 2023-02-27 16:21:39 -07:00 committed by GitHub
parent c81d4f60af
commit 451ee71930
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ class ApiKeyScope < ActiveRecord::Base
class << self class << self
def list_actions 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}"]) } %i[latest unread new top].each { |f| actions.concat(["list#category_#{f}", "list##{f}"]) }