mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
* updated urls in premium web component and premium libs to use the cloudwebvaulturl * moved premium.component in web from base settings to a new settings folder inside vault
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { NgModule } from "@angular/core";
|
|
import { RouterModule, Routes } from "@angular/router";
|
|
|
|
import { BillingHistoryViewComponent } from "../../billing/settings/billing-history-view.component";
|
|
import { PaymentMethodComponent } from "../../billing/settings/payment-method.component";
|
|
import { UserSubscriptionComponent } from "../../billing/settings/user-subscription.component";
|
|
import { PremiumComponent } from "../../vault/settings/premium.component";
|
|
|
|
import { SubscriptionComponent } from "./subscription.component";
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: "",
|
|
component: SubscriptionComponent,
|
|
data: { titleId: "subscription" },
|
|
children: [
|
|
{ path: "", pathMatch: "full", redirectTo: "premium" },
|
|
{
|
|
path: "user-subscription",
|
|
component: UserSubscriptionComponent,
|
|
data: { titleId: "premiumMembership" },
|
|
},
|
|
{
|
|
path: "premium",
|
|
component: PremiumComponent,
|
|
data: { titleId: "goPremium" },
|
|
},
|
|
{
|
|
path: "payment-method",
|
|
component: PaymentMethodComponent,
|
|
data: { titleId: "paymentMethod" },
|
|
},
|
|
{
|
|
path: "billing-history",
|
|
component: BillingHistoryViewComponent,
|
|
data: { titleId: "billingHistory" },
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class SubscriptionRoutingModule {}
|