remove long-unused UI routes (#63670)

- Threads: 2+ years removed, from old code discussions functionality
- Snippets: never a top-level route
- Subscriptions: ~2 years removed, from old Stripe license key payment
code
- Views: 2+ years removed, experimental feature
- Own: not a top-level route anymore, never on dotcom
- Registry: ~1.5 years removed, was the extension registry UI (API
routes still available for backcompat)
- `/search/cody`: removed from dotcom ~1 month ago
- App: removed 6 months ago, experimental and not used anymore

## Test plan

Test that none of these routes are active on s2 or Sourcegraph.com.
This commit is contained in:
Quinn Slack 2024-07-05 09:00:43 -05:00 committed by GitHub
parent b0f3ba5f35
commit fc011a19d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,20 +133,11 @@ func InitRouter(db database.DB) {
{path: "/sign-up", name: uirouter.RouteSignUp, title: "Sign up", index: true},
// without index:
{pathPrefix: "/threads", name: "threads", title: "Threads", index: false},
{pathPrefix: "/organizations", name: "org", title: "Organization", index: false},
{pathPrefix: "/teams", name: "team", title: "Team", index: false},
{pathPrefix: "/settings", name: routeSettings, title: "Settings", index: false},
{pathPrefix: "/site-admin", name: routeSiteAdmin, title: "Admin", index: false},
{pathPrefix: "/snippets", name: "snippets", title: "Snippets", index: false},
{pathPrefix: "/subscriptions", name: "subscriptions", title: "Subscriptions", index: false},
{pathPrefix: "/views", name: "views", title: "View", index: false},
{pathPrefix: "/own", name: "own", title: "Own", index: false},
{pathPrefix: "/contexts", name: "contexts", title: "Search Contexts", index: false},
{pathPrefix: "/registry", name: "registry", title: "Registry", index: false},
{path: "/search/cody", name: "cody-search", title: "Search (Cody)", index: false},
{path: "/app/coming-soon", name: "app-coming-soon", title: "Coming soon", index: false},
{path: "/app/auth/callback", name: "app-auth-callback", title: "Auth callback", index: false},
{path: "/cody/manage", name: "cody", title: "Cody Manage", index: false},
{path: "/cody/subscription", name: "cody", title: "Cody Pricing", index: false},
{path: "/cody/chat", name: "cody", title: "Cody", index: false},