Commit Graph

23 Commits

Author SHA1 Message Date
kiwiidb
96c6a4f952 replace username by login 2022-07-07 14:07:28 +02:00
kiwiidb
2793303ad3 swagger: add all endpoints 2022-04-26 13:48:05 +02:00
kiwiidb
5137d966cc feature: start swagger docs 2022-04-26 12:14:50 +02:00
Stefan Kostic
e5c2e5337f Add ignoreErrors to sentry 2022-04-06 17:15:17 +02:00
Stefan Kostic
6266156fda Bad request on auth controller bad req body 2022-03-04 15:25:12 +01:00
Stefan Kostic
f615564728 Return bad auth error response properly 2022-02-24 23:16:21 +01:00
Stefan Kostic
2748b7f2f3 Use request context in handlers 2022-02-08 13:36:50 +01:00
kiwiidb
1ae5df6b8c Feature: integration testing
Add integration tests with testify/suite. Moved some structs
outside of controller funcs so we can re-use them in the testing
package. Add CI workflow for running tests on every push.
2022-02-01 11:47:11 +01:00
Michael Bumann
d10701ad2f Custom HTTP error handler and send sentry notifications 2022-01-24 23:37:03 +01:00
Michael Bumann
891dd8394c DRY up error responses 2022-01-22 20:38:14 +01:00
kiwiidb
8eef14fccc move service functions to service package 2022-01-19 16:10:55 +01:00
kiwiidb
d3948cce06 remove references to jwt in auth controller 2022-01-19 16:03:39 +01:00
kiwiidb
55fda4d3f4 refactor auth and addinvoice 2022-01-19 15:25:07 +01:00
kiwiidb
b8fb826ea5 move config to lib 2022-01-19 14:40:27 +01:00
kiwiidb
a83fbc6067 add constructor funcs for controllers 2022-01-19 14:35:46 +01:00
kiwiidb
c0644b1da7 refactor auth 2022-01-19 14:12:53 +01:00
kiwiidb
e22ab6ce49 rename context to service 2022-01-19 13:53:40 +01:00
Viktor Patchev
919affa2db Update package name to new repo 2022-01-18 10:42:53 +01:00
Michael Bumann
6478c6e0db Make JWT expiry configurable and require to set a JWT secret 2022-01-17 11:11:28 +01:00
Roman Useinov
e7e5904829 UserMiddleware added 2022-01-16 14:02:58 +00:00
Michael Bumann
95512462f6 Cleanup typos (#28)
* Typo

* Typoc
2022-01-16 14:13:45 +01:00
Michael Bumann
2c19244cad Fix auth controller update (#31)
* Fix auth controller update

We should update the user here

* Remove database update on auth call as we simply rely on JWT
2022-01-16 14:11:49 +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