UNPKG

@ima-worldhealth/dhis2-api

Version:

A promise-based wrapper for the DHIS2 web API

22 lines (18 loc) 343 B
const API = require('./base'); class System extends API { constructor() { super(); this.name = 'system'; this.base = '/system'; } /** * @method info * * @description * Reads the data out of system/info route. */ info() { return this.http.get(`${this.base}/info`); } } module.exports = new System();