9 lines
160 B
JavaScript
9 lines
160 B
JavaScript
|
const common = require('./common')
|
||
|
|
||
|
exports.getArticle = function(id) {
|
||
|
return common.sendRequest({
|
||
|
method: 'GET',
|
||
|
url: '/api/articles/' + id,
|
||
|
})
|
||
|
}
|