Skip to content

Commit

Permalink
Step 2.4: Remove GET /chats route
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Urigo committed May 20, 2020
1 parent 5dc4336 commit 000839b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ApolloServer, gql } from 'apollo-server-express';
import cors from 'cors';
import express from 'express';
import { chats } from './db';
import schema from './schema';

const app = express();
Expand All @@ -13,10 +12,6 @@ app.get('/_ping', (req, res) => {
res.send('pong');
});

app.get('/chats', (req, res) => {
res.json(chats);
});

const server = new ApolloServer({ schema });

server.applyMiddleware({
Expand Down

0 comments on commit 000839b

Please sign in to comment.