Pass socket.io into API route handler