update api url

This commit is contained in:
landaiqing
2024-11-15 02:05:52 +08:00
parent 33d76461f1
commit 23331318de
10 changed files with 16 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ import {service} from "@/utils/alova/service.ts";
* 获取Gitee登录链接
*/
export const getGiteeUrl = () => {
return service.Get('/api/oauth/gitee/get_url',
return service.Get('/api/oauth/gitee/url',
{
meta: {
ignoreToken: true,

View File

@@ -4,7 +4,7 @@ import {service} from "@/utils/alova/service.ts";
* Get Github OAuth URL
*/
export const getGithubUrl = (state: string) => {
return service.Get('/api/oauth/github/get_url',
return service.Get('/api/oauth/github/url',
{
params: {
state: state

View File

@@ -4,7 +4,7 @@ import {service} from "@/utils/alova/service.ts";
* 生成客户端id
*/
export const generateClientId = () => {
return service.Get('/api/client/generate_client_id',
return service.Get('/api/client/generate',
{
meta: {
ignoreToken: true,

View File

@@ -1,7 +1,7 @@
import {service} from "@/utils/alova/service.ts";
export const getQQUrl = (state: string) => {
return service.Get('/api/oauth/qq/get_url',
return service.Get('/api/oauth/qq/url',
{
params: {
state: state

View File

@@ -5,7 +5,7 @@ import {service} from "@/utils/alova/service.ts";
* @param clientId
*/
export const generateQrCode = (clientId: string) => {
return service.Get('/api/oauth/wechat/get_temp_qrcode',
return service.Get('/api/oauth/wechat/qrcode',
{
params: {
client_id: clientId