feat: worker groups admin panel (#2277)

* merge

* merge

* merge

* wg

* progress

* all

* all

* all

* all

* all

* all

* fix

* fix
This commit is contained in:
Ruben Fiszel
2023-09-13 21:24:54 +02:00
committed by GitHub
parent e85ee6cf1e
commit dfcdb2d8ff
37 changed files with 1273 additions and 380 deletions
+12 -6
View File
@@ -74,13 +74,19 @@ pub fn workspaced_service() -> Router {
.route("/edit_error_handler", post(edit_error_handler));
#[cfg(feature = "enterprise")]
tracing::info!("stripe enabled");
#[cfg(feature = "enterprise")]
let router = router
.route("/checkout", get(stripe_checkout))
.route("/billing_portal", get(stripe_portal));
{
if std::env::var("STRIPE_KEY").is_err() {
return router;
} else {
tracing::info!("stripe enabled");
return router
.route("/checkout", get(stripe_checkout))
.route("/billing_portal", get(stripe_portal));
}
}
#[cfg(not(feature = "enterprise"))]
router
}
pub fn global_service() -> Router {