ota.ts 274 B

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