Skip to content

Commit

Permalink
add routes to expressJS
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyeo committed Jun 18, 2024
1 parent 6592365 commit 5eaab53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { WebSocketServer, WebSocket } from 'ws';


import tokenRoutes from './api/routes/tokenRoutes'
import conversationRoutes from './api/routes/conversationRoutes'
import chatMessageConsumer from './api/consumers/chatMessageConsumer';

const app = express();
Expand All @@ -18,7 +19,7 @@ app.use(cors({
app.use(express.json());

app.use('/api-chat/token', tokenRoutes);

app.use('/api-chat/', conversationRoutes);

app.get('/api-chat/ping', (req, res) => {
res.send('Pong!');
Expand Down

0 comments on commit 5eaab53

Please sign in to comment.