Stefan Kostic
2748b7f2f3
Use request context in handlers
2022-02-08 13:36:50 +01:00
Michael Bumann
d10701ad2f
Custom HTTP error handler and send sentry notifications
2022-01-24 23:37:03 +01:00
Michael Bumann
f6367b33a0
Merge pull request #69 from getAlby/bugfix/fix-invoices-without-description
...
Do not fail if invoice does not have a description
2022-01-24 20:12:29 +02:00
Michael Bumann
edd2abedfb
Do not fail if invoice does not have a description
2022-01-22 23:05:21 +01:00
Michael Bumann
891dd8394c
DRY up error responses
2022-01-22 20:38:14 +01:00
Michael Bumann
1359d97d6a
Better payinvoice response
...
This is not exactly the response that lndhub gives but it should be good enough
2022-01-22 19:20:40 +01:00
Michael Bumann
2097807c85
Support Amount values as string/integer in request JSON
2022-01-21 11:15:35 +01:00
Michael Bumann
70a7e1a8eb
Add DB constraints to check for user balances
2022-01-20 02:03:51 +01:00
Michael Bumann
d4183c100b
Add payinvoice endpoint
2022-01-20 01:57:31 +01:00
kiwiidb
8eef14fccc
move service functions to service package
2022-01-19 16:10:55 +01:00
kiwiidb
18f65e4546
refactor payinvoice
2022-01-19 15:32:22 +01:00
kiwiidb
a83fbc6067
add constructor funcs for controllers
2022-01-19 14:35:46 +01:00
kiwiidb
0c80998b49
refactor payinvoice
2022-01-19 14:22:16 +01:00
kiwiidb
e22ab6ce49
rename context to service
2022-01-19 13:53:40 +01:00
Michael Bumann
f8aa8d5962
Reuse user model for account lookup
2022-01-19 13:21:08 +01:00
Michael Bumann
d86c7b680d
Test creating account transactions for outgoing transaction
2022-01-19 11:00:08 +01:00
Roman Useinov
628071160c
Cleanup ( #25 )
...
* remove cmd folder as we are going to have only one entrypoint
* get rid of pkg directory
* rename test -> integration_tests as unit tests should reside next to the actual files they are testing
* database migration WIP
* reinstate gorm boilerplate in the addinvoice for now to make it compile
* introduce migrations
* add Makefile
* don't use unsigned types for database mappings
* migrations work now
* add build target
* use echo groups
* gorm removed
* add envconfig
* fix comments
2022-01-16 00:49:19 +01:00