Skip to content

Commit

Permalink
Ajustando merge
Browse files Browse the repository at this point in the history
  • Loading branch information
angeliski committed Jan 22, 2018
1 parent ae06fc2 commit 67069ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/api/events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { find, create, update, remove } from './controller'
const router = (loginManager) => {
let route = Router()

route.get('/event/:id?', find)
route.post('/event', loginManager.authentication, create)
route.put('/event/:id', loginManager.admin, update)
route.delete('/event/:id', loginManager.admin, remove)
route.get('/:id?', find)
route.post('/', loginManager.authentication, create)
route.put('/:id', loginManager.admin, update)
route.delete('/:id', loginManager.admin, remove)

return route
}
Expand Down
8 changes: 0 additions & 8 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ const router = ({
db
}))

api.use(Admin({
config,
db,
loginManager
}))

api.use(Events(loginManager))

api.get('/', (req, res, next) => {
res.json({
version
Expand Down

0 comments on commit 67069ff

Please sign in to comment.