commit f5a19c5f8b1637def0137a6648cc3e68314df0dd
parent f162e85e44ace456f19f2254145e060996edb70f
Author: Daniel GarcĂa <dani-garcia@users.noreply.github.com>
Date: Thu, 31 Aug 2023 20:37:04 +0200
Merge pull request #3797 from stefan0xC/add-plans-all-endpoint
add new secretsmanager plan for web-v2023.8.x
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs
@@ -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,
@@ -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.