1.0.7 • Published 5 years ago

yfe-server v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Installation

import Server from 'yfe-server'

Usage

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
    }
  }
  
}

Api

this.axios(method, baseUrl, url, [params, options])

parameters

  1. 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
  2. options: it can overwrite the options in aixos, so you can add whatever you what when you send a request
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago