 listCompetitionsByMembership = (api) ->
   (req, res) ->
 
+joinCompetition = (api) ->
+  (req, res) ->
+
+withdrawFromCompetition = (api) ->
+  (req, res) ->
 
 module.exports = {init}
  ['/competitions/all', 'get', listCompetitions]
  ['/competitions/by-owner', 'get', listCompetitionsByOwner]
  ['/competitions/by-membership', 'get', listCompetitionsByMembership]
]

# Creates an object suitable for use with paged UIs

    )
    .done()

listCompetition = (api) ->
  (req, res) ->

listCompetitions = (api) ->
  (req, res) ->
    api.listCompetitions()
