Add endpoint for plugin subscription

This commit is contained in:
Alex Ling
2021-07-11 02:45:14 +00:00
parent 3b19883dde
commit 259f6cb285
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ struct SubscriptionList
forward_missing_to @ary
def initialize(@dir)
@path = Path[@dir, "subscriptions.json"]
@path = Path[@dir, "subscriptions.json"].to_s
if File.exists? @path
@ary = Array(Subscription).from_json File.read @path
end