You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaweb/composables/api/token.ts

19 lines
350 B
TypeScript

/*
* token.ts
* Copyright (C) 2023 veypi <i@veypi.com>
* 2023-09-30 17:37
* Distributed under terms of the MIT license.
*/
import ajax from './axios'
export default (uuid: string) => {
return {
local: './app/' + uuid + '/token/',
get(data: { app_id?: string, token: string }) {
return ajax.post(this.local, data)
},
}
}