fix: remove trailing / for invitation url

This commit is contained in:
Phan An 2023-08-24 00:25:18 +02:00
parent f2aff43038
commit 52bcc06f96
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -2,7 +2,7 @@ import { http } from '@/services'
import { userStore } from '@/stores'
export const invitationService = {
getUserProspect: async (token: string) => await http.get<User>(`invitations/?token=${token}`),
getUserProspect: async (token: string) => await http.get<User>(`invitations?token=${token}`),
async accept (token: string, name: string, password: string) {
await http.post<User>('invitations/accept', { token, name, password })