1.0.8 ā€¢ Published 3 years ago

@easy-uniapp/api v1.0.8

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

Welcome to @easy-uniapp/api šŸ‘‹

Version Documentation

Easy Uni-App Api

šŸ  Homepage

Install

# yarn
yarn add @easy-uniapp/api

# npm
npm install @easy-uniapp/api --save

Usage

import api from '@easy-uniapp/api'

const api = new Api()

const isDev = process.env.NODE_ENV === 'development'

const baseUrl = isDev ? '[developmentServer]' : '[productServer]'

api.setConfig({
  baseUrl,
  beforeRequest: async (requestOptions) => {
    // do something...
  },
  beforeResponse: async (ret) => {
    // do something...
  },
})

export default api

Author

šŸ‘¤ godtail i@tech.top

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 godtail <i@tech.top>.

This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago