Skip to content

Commit

Permalink
Merge pull request dani-garcia#3797 from stefan0xC/add-plans-all-endp…
Browse files Browse the repository at this point in the history
…oint

add new secretsmanager plan for web-v2023.8.x
  • Loading branch information
dani-garcia authored and jayknyn committed Oct 28, 2023
2 parents 3eea095 + add85c1 commit eeed64f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub fn routes() -> Vec<Route> {
put_policy,
get_organization_tax,
get_plans,
get_plans_all,
get_plans_tax_rates,
import,
post_org_keys,
Expand Down Expand Up @@ -1810,12 +1811,28 @@ fn get_plans() -> Json<Value> {
"Product": 0,
"Name": "Free",
"NameLocalizationKey": "planNameFree",
"BitwardenProduct": 0,
"MaxUsers": 0,
"DescriptionLocalizationKey": "planDescFree"
},{
"Object": "plan",
"Type": 0,
"Product": 1,
"Name": "Free",
"NameLocalizationKey": "planNameFree",
"BitwardenProduct": 1,
"MaxUsers": 0,
"DescriptionLocalizationKey": "planDescFree"
}],
"ContinuationToken": null
}))
}

#[get("/plans/all")]
fn get_plans_all() -> Json<Value> {
get_plans()
}

#[get("/plans/sales-tax-rates")]
fn get_plans_tax_rates(_headers: Headers) -> Json<Value> {
// Prevent a 404 error, which also causes Javascript errors.
Expand Down

0 comments on commit eeed64f

Please sign in to comment.