File tree 2 files changed +1
-19
lines changed
2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change 1
1
import http from 'http'
2
- // import { execute, subscribe } from 'graphql'
3
2
import { createServer } from 'http'
4
3
5
4
import app from './server'
6
- // import schema from './schema'
7
-
8
- const server = http . createServer ( app )
9
5
let currentApp = app
10
6
11
- server . listen ( 3000 , ( ) => {
12
- console . log ( 'Server listening on port 3000' )
13
- } )
14
7
15
8
if ( module . hot ) {
16
9
module . hot . accept ( [ './server' ] , ( ) => {
Original file line number Diff line number Diff line change @@ -4,17 +4,6 @@ import { restRouter } from './api'
4
4
import { connect } from './db'
5
5
import { signin , protect } from './api/modules/auth'
6
6
// 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
19
8
20
9
export default app
You can’t perform that action at this time.
0 commit comments