ota.ts 254 B

1234567891011
  1. import { API } from '../api'
  2. import type { Tota } from '~/types/ota'
  3. class OTAModule extends API {
  4. async getVersion(isDev: boolean) {
  5. return await this.get<Tota>(`/updates/check${isDev ? '?prerelease=true' : ''}`)
  6. }
  7. }
  8. export default OTAModule