From 5102ae2a583d6cd3a8b9c9588e74985117bc023b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20L=C3=B3pez?= Date: Wed, 4 Mar 2026 11:48:12 +0100 Subject: [PATCH] :sparkles: Add API get-penpot-version --- backend/src/app/rpc/management/nitrate.clj | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backend/src/app/rpc/management/nitrate.clj b/backend/src/app/rpc/management/nitrate.clj index 23a8dcaa37..9e498eb052 100644 --- a/backend/src/app/rpc/management/nitrate.clj +++ b/backend/src/app/rpc/management/nitrate.clj @@ -12,6 +12,7 @@ [app.common.types.profile :refer [schema:profile, schema:basic-profile]] [app.common.types.team :refer [schema:team]] [app.common.uuid :as uuid] + [app.config :as cf] [app.db :as db] [app.msgbus :as mbus] [app.rpc :as-alias rpc] @@ -45,6 +46,19 @@ AND t.is_default IS FALSE AND t.deleted_at IS NULL;") +;; ---- API: get-penpot-version + +(def ^:private schema:get-penpot-version-result + [:map [:version ::sm/text]]) + +(sv/defmethod ::get-penpot-version + "Get the current Penpot version" + {::doc/added "2.14" + ::sm/params [:map] + ::sm/result schema:get-penpot-version-result} + [_cfg _params] + {:version cf/version}) + (def ^:private schema:get-teams-result [:vector schema:team])