mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-12 07:42:40 +10:00
finalised client APIs and authentication method
This commit is contained in:
@ -134,13 +134,13 @@ import { CheckCircleIcon } from "@heroicons/vue/24/outline";
|
||||
const route = useRoute();
|
||||
const clientId = route.params.id;
|
||||
|
||||
const clientData = await useFetch(`/api/v1/client/callback?id=${clientId}`);
|
||||
const clientData = await useFetch(`/api/v1/client/auth/callback?id=${clientId}`);
|
||||
|
||||
const completed = ref(false);
|
||||
const error = ref();
|
||||
|
||||
async function authorize() {
|
||||
const redirect = await $fetch<string>("/api/v1/client/callback", {
|
||||
const redirect = await $fetch<string>("/api/v1/client/auth/callback", {
|
||||
method: "POST",
|
||||
body: { id: clientId },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user