Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrixer committed Oct 16, 2017
1 parent 733c5e1 commit 54ea7f5
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 191 deletions.
37 changes: 0 additions & 37 deletions src/api/graphQLRouter.js

This file was deleted.

1 change: 0 additions & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { restRouter } from './restRouter'
export { graphQLRouter } from './graphQLRouter'
1 change: 0 additions & 1 deletion src/api/resources/playlist/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './playlist.restRouter'
export * from './playlist.graphQLRouter'
2 changes: 0 additions & 2 deletions src/api/resources/playlist/playlist.graphQLRouter.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/api/resources/playlist/playlist.graphql

This file was deleted.

18 changes: 0 additions & 18 deletions src/api/resources/playlist/playlist.resolvers.js

This file was deleted.

1 change: 0 additions & 1 deletion src/api/resources/song/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './song.restRouter'
export * from './song.graphQLRouter'
2 changes: 0 additions & 2 deletions src/api/resources/song/song.graphQLRouter.js

This file was deleted.

37 changes: 0 additions & 37 deletions src/api/resources/song/song.graphql

This file was deleted.

29 changes: 0 additions & 29 deletions src/api/resources/song/song.resolvers.js

This file was deleted.

1 change: 0 additions & 1 deletion src/api/resources/user/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './user.restRouter'
export * from './user.graphQLRouter'
2 changes: 0 additions & 2 deletions src/api/resources/user/user.graphQLRouter.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/api/resources/user/user.graphql

This file was deleted.

18 changes: 0 additions & 18 deletions src/api/resources/user/user.resolvers.js

This file was deleted.

5 changes: 1 addition & 4 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import express from 'express'
import setupMiddware from './middleware'
import { restRouter, graphQLRouter } from './api'
import { restRouter } from './api'
import { connect } from './db'
import { signin, protect } from './api/modules/auth'
import { graphiqlExpress } from 'apollo-server-express'
// Declare an app from express
const app = express()

Expand All @@ -13,8 +12,6 @@ connect()

app.use('/signin', signin)
app.use('/api', protect, restRouter)
app.use('/graphql', graphQLRouter)
app.use('/docs', graphiqlExpress({ endpointURL: '/graphql' }))
// catch all
app.all('*', (req, res) => {
res.json({ok: true})
Expand Down

0 comments on commit 54ea7f5

Please sign in to comment.