-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add registration token functionality, remove unused vue pages
- Loading branch information
Showing
17 changed files
with
241 additions
and
996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import type { RegistrationToken } from './types' | ||
import type { GenericResponseDTO, RegistrationTokenRequestDTO } from './types' | ||
|
||
import { client } from '.' | ||
|
||
export function getAllRegistrationTokens(): Promise<RegistrationToken[]> { | ||
export function getAllRegistrationTokens(): Promise<RegistrationTokenRequestDTO[]> { | ||
return client.get('/api/management/registration_tokens').then(res => res.data) | ||
} | ||
|
||
|
||
export function createRegistrationToken(token: RegistrationTokenRequestDTO): Promise<GenericResponseDTO> { | ||
return client.post('/api/management/registration_tokens', token).then(res => res.data) | ||
} | ||
|
||
export function deleteRegistrationTokens(tokens: string[]): Promise<GenericResponseDTO> { | ||
return client.delete('/api/management/registration_tokens', {data: tokens}).then(res => res.data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.