Skip to content

Commit 207b7e3

Browse files
committed
chore
1 parent c198ec5 commit 207b7e3

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/index.js

-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
import http from 'http'
2-
// import { execute, subscribe } from 'graphql'
32
import { createServer } from 'http'
43

54
import app from './server'
6-
// import schema from './schema'
7-
8-
const server = http.createServer(app)
95
let currentApp = app
106

11-
server.listen(3000, () => {
12-
console.log('Server listening on port 3000')
13-
})
147

158
if (module.hot) {
169
module.hot.accept(['./server'], () => {

src/server.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ import { restRouter } from './api'
44
import { connect } from './db'
55
import { signin, protect } from './api/modules/auth'
66
// Declare an app from express
7-
const app = express()
8-
9-
setupMiddware(app)
10-
connect()
11-
// setup basic routing for index route
12-
13-
app.use('/signin', signin)
14-
15-
// catch all
16-
app.all('*', (req, res) => {
17-
res.json({ok: true})
18-
})
7+
const app = null
198

209
export default app

0 commit comments

Comments
 (0)