summary refs log tree commit diff
path: root/src/api/routes/connections
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2022-12-22 10:47:32 -0500
committerPuyodead1 <puyodead@proton.me>2023-03-18 19:15:40 -0400
commit6a52e65e27d514273a4210dadafbee9692f23354 (patch)
treec2eb70b2b7c4be1a482392ca8982459885e1865c /src/api/routes/connections
parentadd connections (diff)
downloadserver-6a52e65e27d514273a4210dadafbee9692f23354.tar.xz
adding connection now works
Diffstat (limited to 'src/api/routes/connections')
-rw-r--r--src/api/routes/connections/#connection_name/authorize.ts2
-rw-r--r--src/api/routes/connections/#connection_name/callback.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/connections/#connection_name/authorize.ts b/src/api/routes/connections/#connection_name/authorize.ts
index 8e640a69..5ce420cf 100644
--- a/src/api/routes/connections/#connection_name/authorize.ts
+++ b/src/api/routes/connections/#connection_name/authorize.ts
@@ -6,7 +6,7 @@ import { route } from "../../../util";
 const router = Router();
 
 router.get("/", route({}), async (req: Request, res: Response) => {
-	const { connection_id: connection_name } = req.params;
+	const { connection_name } = req.params;
 	const connection = ConnectionStore.connections.get(connection_name);
 	if (!connection)
 		throw FieldErrors({
diff --git a/src/api/routes/connections/#connection_name/callback.ts b/src/api/routes/connections/#connection_name/callback.ts
index f158a037..80a5b784 100644
--- a/src/api/routes/connections/#connection_name/callback.ts
+++ b/src/api/routes/connections/#connection_name/callback.ts
@@ -13,7 +13,7 @@ router.post(
 	"/",
 	route({ body: "ConnectionCallbackSchema" }),
 	async (req: Request, res: Response) => {
-		const { connection_id: connection_name } = req.params;
+		const { connection_name } = req.params;
 		const connection = ConnectionStore.connections.get(connection_name);
 		if (!connection)
 			throw FieldErrors({