@ResponseStatus(HttpStatus.OK)
  @RequestMapping(value = "{id}", method = RequestMethod.DELETE)
  public void delete(
      @PathVariable("id") int id, @RequestHeader(name = "Authorization") String token) {
    auth.isGeregistreerd(token);
    auth.isEigenaar(token, service.find(id).getGebruiker());

    service.delete(id);
  }
  @ResponseStatus(HttpStatus.OK)
  @RequestMapping(value = "{id}", method = RequestMethod.PUT)
  public void update(
      @PathVariable("id") int id,
      @RequestHeader(name = "Authorization") String token,
      @Valid @RequestBody SubthemaRequest subthema) {
    auth.isGeregistreerd(token);
    auth.isEigenaar(token, service.find(id).getGebruiker());

    service.update(id, subthema);
  }
  @ResponseStatus(code = HttpStatus.CREATED)
  @RequestMapping(value = "", method = RequestMethod.POST)
  public void create(
      @RequestHeader(name = "Authorization") String token,
      @Valid @RequestBody SubthemaRequest subthema) {
    auth.isGeregistreerd(token);

    service.create(subthema);
  }
 @ResponseStatus(HttpStatus.CREATED)
 @RequestMapping(value = "{id}/kaart", method = RequestMethod.POST)
 public void addKaart(@PathVariable("id") int id, @Valid @RequestBody KaartRequest kaart) {
   service.addKaart(id, kaart);
 }
 @ResponseStatus(code = HttpStatus.OK)
 @RequestMapping(value = "{id}/kaarten", method = RequestMethod.GET)
 public List<Kaart> getKaarten(@PathVariable int id) {
   return service.getKaarten(id);
 }
 @ResponseStatus(code = HttpStatus.OK)
 @RequestMapping(value = "{id}/cirkelsessies", method = RequestMethod.GET)
 public List<Cirkelsessie> getCirkelsessies(@PathVariable int id) {
   return service.getCirkelsessies(id);
 }
 @ResponseStatus(code = HttpStatus.OK)
 @RequestMapping(value = "{id}/hoofdthema", method = RequestMethod.GET)
 public Hoofdthema findHoofdthema(@PathVariable int id) {
   return service.findHoofdthema(id);
 }
 @ResponseStatus(code = HttpStatus.OK)
 @RequestMapping(value = "{id}/organisatie", method = RequestMethod.GET)
 public Organisatie findOrganisatie(@PathVariable int id) {
   return service.findOrganisatie(id);
 }
 @ResponseStatus(code = HttpStatus.OK)
 @RequestMapping(value = "{id}", method = RequestMethod.GET)
 public Subthema show(@PathVariable int id) {
   return service.find(id);
 }
 @ResponseStatus(HttpStatus.OK)
 @RequestMapping(value = "", method = RequestMethod.GET)
 public List<Subthema> index() {
   return service.all();
 }