mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
🐛 Fix missing methods reference from api docs page
This commit is contained in:
parent
f0f89151c5
commit
667b5fb6ee
2 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
- Fix detach when top copy is dangling and nested copy is not [Taiga #9699](https://tree.taiga.io/project/penpot/issue/9699)
|
||||
- Fix problem in plugins with `replaceColor` method [#174](https://github.com/penpot/penpot-plugins/issues/174)
|
||||
- Fix missing methods reference on API Docs
|
||||
|
||||
|
||||
## 2.4.1
|
||||
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
(let [params (:query-params request)
|
||||
pstyle (:type params "js")
|
||||
context (assoc context :param-style pstyle)]
|
||||
|
||||
{::yres/status 200
|
||||
::yres/body (-> (io/resource "app/templates/api-doc.tmpl")
|
||||
(tmpl/render context))}))
|
||||
|
@ -207,7 +208,7 @@
|
|||
(assert (sm/valid? ::rpc/methods (::rpc/methods params)) "expected valid methods"))
|
||||
|
||||
(defmethod ig/init-key ::routes
|
||||
[_ {:keys [methods] :as cfg}]
|
||||
[_ {:keys [::rpc/methods] :as cfg}]
|
||||
[(let [context (prepare-doc-context methods)]
|
||||
[["/_doc"
|
||||
{:handler (doc-handler context)
|
||||
|
|
Loading…
Add table
Reference in a new issue