beelink/src/api/index.ts

11 lines
248 B
TypeScript
Raw Normal View History

2020-09-24 07:33:12 +00:00
import { get, post } from './base'
import { AxiosPromise } from 'axios'
export function getinfo(): Promise<AxiosPromise>{
return get("a")
}
export function seninfo(data: object | undefined): Promise<AxiosPromise>{
return post("b",data)
}