anchor.diff:                               {auth, fun handle_set_replication_topology/1};
                            ["controller", "regenerateCertificate"] ->
                                {auth, fun handle_regenerate_certificate/1};
  -                         ["pools", PoolId, "buckets", Id] ->
  +                         ["pools", "default", "buckets", Id] ->
                                {auth_check_bucket_uuid, fun menelaus_web_buckets:handle_bucket_update/3,
  -                              [PoolId, Id]};
  -                         ["pools", PoolId, "buckets"] ->
  +                              ["default", Id]};
  +                         ["pools", "default", "buckets"] ->
                                {auth, fun menelaus_web_buckets:handle_bucket_create/2,
  -                              [PoolId]};
  -                         ["pools", _PoolId, "buckets", Id, "docs", DocId] ->
  +                              ["default"]};
  +                         ["pools", "default", "buckets", Id, "docs", DocId] ->
                                {auth, fun menelaus_web_crud:handle_post/3, [Id, DocId]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "doFlush"] ->
  +                         ["pools", "default", "buckets", Id, "controller", "doFlush"] ->
                                {auth_bucket_mutate,
  -                              fun menelaus_web_buckets:handle_bucket_flush/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "compactBucket"] ->
  +                              fun menelaus_web_buckets:handle_bucket_flush/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "compactBucket"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_compact_bucket/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "unsafePurgeBucket"] ->
  +                              fun menelaus_web_buckets:handle_compact_bucket/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "unsafePurgeBucket"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_purge_compact_bucket/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "cancelBucketCompaction"] ->
  +                              fun menelaus_web_buckets:handle_purge_compact_bucket/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "cancelBucketCompaction"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_cancel_bucket_compaction/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "compactDatabases"] ->
  +                              fun menelaus_web_buckets:handle_cancel_bucket_compaction/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "compactDatabases"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_compact_databases/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "cancelDatabasesCompaction"] ->
  +                              fun menelaus_web_buckets:handle_compact_databases/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "cancelDatabasesCompaction"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_cancel_databases_compaction/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "startRecovery"] ->
  -                             {auth, fun menelaus_web_recovery:handle_start_recovery/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "stopRecovery"] ->
  -                             {auth, fun menelaus_web_recovery:handle_stop_recovery/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id, "controller", "commitVBucket"] ->
  -                             {auth, fun menelaus_web_recovery:handle_commit_vbucket/3, [PoolId, Id]};
  -                         ["pools", PoolId, "buckets", Id,
  +                              fun menelaus_web_buckets:handle_cancel_databases_compaction/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "startRecovery"] ->
  +                             {auth, fun menelaus_web_recovery:handle_start_recovery/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "stopRecovery"] ->
  +                             {auth, fun menelaus_web_recovery:handle_stop_recovery/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id, "controller", "commitVBucket"] ->
  +                             {auth, fun menelaus_web_recovery:handle_commit_vbucket/3, ["default", Id]};
  +                         ["pools", "default", "buckets", Id,
                             "ddocs", DDocId, "controller", "compactView"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_compact_view/4, [PoolId, Id, DDocId]};
  -                         ["pools", PoolId, "buckets", Id,
  +                              fun menelaus_web_buckets:handle_compact_view/4, ["default", Id, DDocId]};
  +                         ["pools", "default", "buckets", Id,
                             "ddocs", DDocId, "controller", "cancelViewCompaction"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_cancel_view_compaction/4, [PoolId, Id, DDocId]};
  -                         ["pools", PoolId, "buckets", Id,
  +                              fun menelaus_web_buckets:handle_cancel_view_compaction/4, ["default", Id, DDocId]};
  +                         ["pools", "default", "buckets", Id,
                             "ddocs", DDocId, "controller", "setUpdateMinChanges"] ->
                                {auth_check_bucket_uuid,
  -                              fun menelaus_web_buckets:handle_set_ddoc_update_min_changes/4, [PoolId, Id, DDocId]};
  +                              fun menelaus_web_buckets:handle_set_ddoc_update_min_changes/4, ["default", Id, DDocId]};
                            ["pools", "default", "remoteClusters"] ->
                                {auth, fun menelaus_web_remote_clusters:handle_remote_clusters_post/1};
                            ["pools", "default", "remoteClusters", Id] ->
  
positive.code:                              {auth, fun handle_internal_settings_post/1};
                           ["internalSettings", "visual"] ->
                               {auth, fun handle_visual_internal_settings_post/1};
                           ["pools", PoolId] ->
                               {auth, fun handle_pool_settings/2,
                                [PoolId]};
                           ["controller", "ejectNode"] ->
                               {auth, fun handle_eject_post/1};
                           ["controller", "addNode"] ->
  
negative.code:                              {auth, fun diag_handler:handle_diag/1, []};
                           ["diag", "vbuckets"] -> {auth, fun handle_diag_vbuckets/1};
                           ["diag", "masterEvents"] -> {auth, fun handle_diag_master_events/1};
                           ["pools", "default", "rebalanceProgress"] ->
                               {auth_ro, fun handle_rebalance_progress/2, ["default"]};
                           ["pools", "default", "tasks"] ->
                               {auth_ro, fun handle_tasks/2, ["default"]};
                           ["index.html"] ->
                               {done, serve_static_file(Req, {AppRoot, Path},
                                                        "text/html; charset=utf8",
  