export default function(server, namespace = 'https://presence.twitch.tv/v1') {
  server.namespace = namespace;

  server.post('/online', {}, 204);
  server.get('/settings', { share: 'none', share_activity: false }, 200);
  server.get('/friends', function(schema) {
    return {data: schema.db.friends};
  });

  server.namespace = undefined;
}
