diff --git a/lib/figure.js b/lib/figure.js index 78c4561..d688edd 100644 --- a/lib/figure.js +++ b/lib/figure.js @@ -16,6 +16,8 @@ var resources = { ImageVariables: require('./resources/ImageVariables.js'), Portraits: require('./resources/Portraits.js'), PosterOrders: require('./resources/PosterOrders'), + Posts: require('./resources/Posts'), + PostRows: require('./resources/PostRows'), FigureGif: require('./resources/FigureGif'), PlaceGifs: require('./resources/PlaceGifs'), EventGifs: require('./resources/EventGifs'), diff --git a/lib/resources/PostRows.js b/lib/resources/PostRows.js new file mode 100644 index 0000000..0e94323 --- /dev/null +++ b/lib/resources/PostRows.js @@ -0,0 +1,13 @@ +'use strict'; + +var FigureResource = require('../FigureResource'); +var figureMethod = FigureResource.method; + +module.exports = FigureResource.extend({ + + path: 'post_rows', + includeBasic: [ + 'get', 'edit', 'getAll', 'del' + ], + +}); \ No newline at end of file diff --git a/lib/resources/Posts.js b/lib/resources/Posts.js new file mode 100644 index 0000000..ba6dd1e --- /dev/null +++ b/lib/resources/Posts.js @@ -0,0 +1,13 @@ +'use strict'; + +var FigureResource = require('../FigureResource'); +var figureMethod = FigureResource.method; + +module.exports = FigureResource.extend({ + + path: 'posts', + includeBasic: [ + 'get', 'edit', 'getAll', 'del' + ], + +}); \ No newline at end of file diff --git a/package.json b/package.json index d0ca4a7..0a87c07 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "figure-sdk", - "version": "0.2.3", + "version": "0.2.4", "description": "The Figure JavaScript SDK", "main": "lib/figure.js", "homepage": "https://github.com/postcard/figure-sdk-node",