# 具體某接口的請求封裝:api/index.js配置
> 引入上一章的get函數
```
import { get } from './helpers'
```
> 定義具體訪問的接口,注意,這些接口是已存在的,不是在這里定義的,這里僅僅是為了規范代碼而進行的簡單封裝。
```
const getSeller = get('api/seller')
const getGoods = get('api/goods')
const getRatings = get('api/ratings')
```
> 將所有封裝輸出
```
export {
getSeller,
getGoods,
getRatings
}
```