This commit is contained in:
parent
4c368458a9
commit
31460598ba
@ -2,6 +2,7 @@ import { createServer as createHttpServer } from 'node:http'
|
||||
import { createExpressMiddleware } from '@trpc/server/adapters/express'
|
||||
import { consola } from 'consola'
|
||||
import cookieParser from 'cookie-parser'
|
||||
import cors from 'cors'
|
||||
import express from 'express'
|
||||
import * as mediasoup from 'mediasoup'
|
||||
import { Server as SocketServer } from 'socket.io'
|
||||
@ -12,6 +13,7 @@ import webrtcSocket from './webrtc/socket'
|
||||
(async () => {
|
||||
const app = express()
|
||||
|
||||
app.use(cors())
|
||||
app.use(cookieParser())
|
||||
app.use(express.json())
|
||||
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import { router } from '../router'
|
||||
import { authRouter } from './auth'
|
||||
import { webrtcRouter } from './webrtc'
|
||||
// import { webrtcRouter } from './webrtc'
|
||||
|
||||
export const appRouter = router({
|
||||
auth: authRouter,
|
||||
webrtc: webrtcRouter,
|
||||
// webrtc: webrtcRouter,
|
||||
})
|
||||
|
||||
export type AppRouter = typeof appRouter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user