aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/oauth/animeschedule/callback/+server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/api/oauth/animeschedule/callback/+server.ts')
-rw-r--r--src/routes/api/oauth/animeschedule/callback/+server.ts17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/routes/api/oauth/animeschedule/callback/+server.ts b/src/routes/api/oauth/animeschedule/callback/+server.ts
deleted file mode 100644
index a5afa303..00000000
--- a/src/routes/api/oauth/animeschedule/callback/+server.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { callback } from '$lib/oauth.js';
-import { env } from '$env/dynamic/private';
-import { env as env2 } from '$env/dynamic/public';
-
-export const GET = async ({ url, cookies }) =>
- callback({
- url,
- cookies,
- cookie: 'animeschedule',
- authorise: 'https://animeschedule.net/api/v3/oauth2/token',
- redirect: '/settings',
- client: {
- id: env2.PUBLIC_ANIMESCHEDULE_CLIENT_ID,
- secret: env.ANIMESCHEDULE_CLIENT_SECRET,
- redirectURI: env2.PUBLIC_ANIMESCHEDULE_REDIRECT_URI
- }
- });