Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow plugins to inject their own routes into API #1805

Merged
merged 5 commits into from
May 19, 2021
Merged

Allow plugins to inject their own routes into API #1805

merged 5 commits into from
May 19, 2021

Conversation

akumaigorodski
Copy link
Contributor

@akumaigorodski akumaigorodski commented May 16, 2021

This is based on a discussion at #1800

With new approach plugins may extend RouteProvider trait and inject their own routes into a single Eclair API endpoint.

I could not find any apparent way to check if any route names clash, maybe this can be dealt with by recommending each API-enabled plugin to prefix its API commands as "plugin_name-command".

@codecov-commenter
Copy link

Codecov Report

Merging #1805 (c0f08e1) into master (90fbcd3) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1805      +/-   ##
==========================================
- Coverage   89.34%   89.33%   -0.02%     
==========================================
  Files         144      143       -1     
  Lines       10934    10929       -5     
  Branches      458      468      +10     
==========================================
- Hits         9769     9763       -6     
- Misses       1165     1166       +1     
Impacted Files Coverage Δ
...main/scala/fr/acinq/eclair/router/Validation.scala 90.76% <0.00%> (-1.54%) ⬇️
...re/src/main/scala/fr/acinq/eclair/NodeParams.scala 92.65% <0.00%> (-0.13%) ⬇️
.../src/main/scala/fr/acinq/eclair/router/Graph.scala 98.14% <0.00%> (-0.02%) ⬇️
...ain/scala/fr/acinq/eclair/db/pg/PgChannelsDb.scala 96.34% <0.00%> (ø)
...ain/scala/fr/acinq/eclair/channel/AliasActor.scala
...cinq/eclair/blockchain/bitcoind/zmq/ZMQActor.scala 95.12% <0.00%> (+0.12%) ⬆️
...src/main/scala/fr/acinq/eclair/db/pg/PgUtils.scala 90.47% <0.00%> (+0.15%) ⬆️

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@t-bast t-bast merged commit 9a20aad into ACINQ:master May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants