import Server from 'yfe-server'
class myServer extends Server {
async getInformation(params, options) {
try {
let result = await this.axios('get', 'http://yourbaseurl.com', '/getinformation',params, options)
return result
} catch(err) {
throw err
}
}
}
this.axios(method, baseUrl, url, [params, options])
-
params: are the URL parameters to be sent with the request, Must be a plain object or a URLSearchParams object
also see params in axios options: it can overwrite the options in aixos, so you can add whatever you what when you send a request