Files
schisandra-cloud-album-front/src/api/oauth/github.ts
2024-09-08 15:47:02 +08:00

22 lines
469 B
TypeScript

import {service} from "@/utils/alova/service.ts";
/**
* Get Github OAuth URL
*/
export const getGithubUrl = (state: string) => {
return service.Get('/api/oauth/github/get_url',
{
params: {
state: state
},
meta: {
ignoreToken: true,
},
cacheFor: {
mode: "restore",
expire: 1000 * 60 * 60 * 24 * 7
}
}
);
};