mirror of
https://codeberg.org/timelimit/timelimit-server-ui.git
synced 2025-10-05 01:59:23 +02:00
Add support for the new premium unlock API
This commit is contained in:
parent
c70c0d131a
commit
5d310c21d8
7 changed files with 180 additions and 5 deletions
|
@ -55,6 +55,16 @@ class DummyApiImpl implements Api {
|
|||
await delay(100 + Math.random() * 400)
|
||||
}
|
||||
|
||||
async unlockPremium2 () {
|
||||
await this.checkAuth()
|
||||
await delay(100 + Math.random() * 400)
|
||||
|
||||
return {
|
||||
ok: false,
|
||||
detail: 'dummy'
|
||||
}
|
||||
}
|
||||
|
||||
async getStatusMessage () {
|
||||
await this.checkAuth()
|
||||
await delay(100 + Math.random() * 400)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue