Commit Graph

13 Commits

Author SHA1 Message Date
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