Skip to content

Commit 81b383c

Browse files
Alex TharpAlex Tharp
authored andcommitted
Merge pull request #9 from cortex-cms/webpages-endpoints
Webpages Endpoints
2 parents 3d824d7 + d69d039 commit 81b383c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/cortex/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'cortex/resource'
44
require 'cortex/posts'
55
require 'cortex/users'
6+
require 'cortex/webpages'
67
require 'cortex/result'
78
require 'oauth2'
89
require 'cortex/exceptions'
@@ -28,6 +29,7 @@ def initialize(hasharg)
2829
end
2930
@posts = Cortex::Posts.new(self)
3031
@users = Cortex::Users.new(self)
32+
@webpages = Cortex::Webpages.new(self)
3133
end
3234

3335
def get_cc_token

lib/cortex/webpages.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module Cortex
2+
class Webpages < Cortex::Resource
3+
def get_feed(id)
4+
client.get("/webpages/feed/#{id}")
5+
end
6+
end
7+
end

0 commit comments

Comments
 (0)