fix: request
This commit is contained in:
1 parent
90864a4a8c
commit
cd7a77c6e4
4 files changed
+6
-7
No files matched your search
+2
-3
@@ -1,6 +1,5 @@
|
||||
import type { CreateTokenRequest } from '@/model/token'
|
||||
import httpClient from './httpClient'
|
||||
|
||||
export function createToken(createTokenRequest: CreateTokenRequest) {
|
||||
return httpClient.post<{ token: string }>('/tokens', createTokenRequest)
|
||||
export function createToken(code: string) {
|
||||
return httpClient.post<{ token: string }>(`/we-chat/tokens/${code}`)
|
||||
}
|
||||
Reference in new issue
Block a user