1
0

feat(api tokens): add token creation form

This commit is contained in:
kolaente
2023-09-01 12:47:32 +02:00
parent a20eef2453
commit e47ad021a3
5 changed files with 134 additions and 17 deletions

View File

@ -22,4 +22,15 @@ export default class ApiTokenService extends AbstractService<IApiToken> {
modelFactory(data: Partial<IApiToken>) {
return new ApiTokenModel(data)
}
async getAvailableRoutes() {
const cancel = this.setLoading()
try {
const response = await this.http.get('/routes')
return response.data
} finally {
cancel()
}
}
}