httpResponse($iplog); break; case validateRoute('GET', 'users/\\d+/snatchlog'): httpResponse($user->getSnatchLog((int) $params[1])); break; case validateRoute('GET', 'users/\\d+/watching'): $watching = new Watching($db, $user); httpResponse($watching->query($params[1], (int) $_GET["imdbid"])); break; case validateRoute('POST', 'users/\\d+/watching'): $watching = new Watching($db, $user); httpResponse($watching->create($params[1], $postdata)); break; case validateRoute('PATCH', 'users/\\d+/watching/\\d+'): $watching = new Watching($db, $user); httpResponse($watching->update($params[1], $params[3], $postdata)); break; case validateRoute('DELETE', 'users/\\d+/watching/\\d+'): $watching = new Watching($db, $user); httpResponse($watching->delete($params[1], $params[3])); break; case validateRoute('GET', 'users/\\d+/watching/toplist'): $watching = new Watching($db, $user); httpResponse($watching->getToplist()); break; case validateRoute('GET', 'watching-subtitles'): $watchSubtitles = new WatchingSubtitles($db, $user); httpResponse($watchSubtitles->query(null)); break; case validateRoute('GET', 'watching-subtitles/\\d+'): $watchSubtitles = new WatchingSubtitles($db, $user);