From 451ee71930d9a2cb13d1c5b87c2a509b3e333292 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Mon, 27 Feb 2023 16:21:39 -0700 Subject: [PATCH] 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. --- app/models/api_key_scope.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/api_key_scope.rb b/app/models/api_key_scope.rb index 957b145cc9e..b22584955d8 100644 --- a/app/models/api_key_scope.rb +++ b/app/models/api_key_scope.rb @@ -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}"]) }