2024-02-01 18:10:15 -05:00
|
|
|
import { Connections } from '$lib/server/users'
|
2024-01-30 12:27:37 -05:00
|
|
|
import type { RequestHandler } from '@sveltejs/kit'
|
|
|
|
|
|
|
|
|
|
export const GET: RequestHandler = async ({ params }) => {
|
2024-02-18 00:01:54 -05:00
|
|
|
const userId = params.userId!
|
2024-01-30 12:27:37 -05:00
|
|
|
|
|
|
|
|
const connections = Connections.getUserConnections(userId)
|
2024-02-18 00:01:54 -05:00
|
|
|
return Response.json({ connections })
|
2024-01-30 12:27:37 -05:00
|
|
|
}
|