Commit Graph

61 Commits

Author SHA1 Message Date
Viktor Patchev
b3584bbc14 Change controller types names 2022-01-10 21:22:40 +01:00
Viktor Patchev
1ee2bdb909 Change folder structure 2022-01-10 21:15:30 +01:00
Michael Bumann
32adea127e Merge pull request #20 from bumi/database-connection-uri
Database uri logic refactor
2022-01-09 19:09:54 +02:00
Michael Bumann
551bd55dba Default to sqlite databse 2022-01-09 18:09:29 +01:00
Michael Bumann
68a9b199bb Support only database URIs in the config 2022-01-09 18:07:38 +01:00
Michael Bumann
baab584c4b Merge pull request #21 from bumi/fix-indexes
Fix indexes
2022-01-09 18:44:16 +02:00
Michael Bumann
691989c693 Merge pull request #22 from bumi/nullstring-fixes
NullString fixes
2022-01-09 18:43:38 +02:00
Viktor Patchev
76cc532079 NullString fixes 2022-01-09 15:47:45 +01:00
Viktor Patchev
9e7e3b598f Fix indexes 2022-01-09 15:28:09 +01:00
Viktor Patchev
d372c74990 Database uri logic refactor 2022-01-09 15:25:22 +01:00
Viktor Patchev
c96e9958e8 Merge pull request #17 from bumi/learning
Learning
2022-01-08 21:41:09 +01:00
Michael Bumann
efa25f7ad1 Merge pull request #19 from bumi/remove-code-leftovers
Removed code leftovers
2022-01-08 19:53:02 +02:00
Michael Bumann
cac27f5962 LNDHub response for /auth call 2022-01-08 18:46:17 +01:00
Viktor Patchev
64430c43c2 Remove code leftovers 2022-01-08 18:36:11 +01:00
Michael Bumann
2223ef41d9 User model updates
also use sql.NullString to set access/refresh token
2022-01-08 18:03:06 +01:00
Michael Bumann
3e758d0e61 LDNHub error responses 2022-01-08 17:55:38 +01:00
Michael Bumann
3a36a74d5c Update user DB config
* use null string for optional attributes
* auto update created_at/updated_at
* set indexes
2022-01-08 17:55:14 +01:00
Michael Bumann
89559b4d3a Raise an error if a user could not be created 2022-01-08 17:48:13 +01:00
Michael Bumann
4162965ef8 Merge pull request #11 from bumi/addinvoice-endpoint
Add invoice endpoint
2022-01-08 17:02:35 +02:00
Michael Bumann
51eb9b493d Merge branch 'main' into addinvoice-endpoint 2022-01-08 17:02:30 +02:00
Michael Bumann
f492af63e0 Merge pull request #15 from bumi/refactor-tokens
Add tokens in separate directory
2022-01-08 16:16:24 +02:00
Viktor Patchev
47d8b70429 Add tokens in separate directory 2022-01-08 12:14:52 +01:00
Viktor Patchev
8618139539 Merge pull request #6 from bumi/add-logging
Add logging and recover middlewares
2022-01-08 10:55:13 +01:00
Viktor Patchev
71a19e9306 Merge pull request #12 from bumi/http-req-body-limit
Add http req body limit
2022-01-08 10:53:45 +01:00
Viktor Patchev
e69c1bc0bd Merge branch 'main' into http-req-body-limit 2022-01-08 10:53:13 +01:00
Viktor Patchev
3460c89954 Change req body limit to 250K 2022-01-08 10:51:43 +01:00
Viktor Patchev
645a63ba28 Fix adding jwt middleware 2022-01-08 10:44:18 +01:00
Viktor Patchev
86ac428767 Merge branch 'main' into addinvoice-endpoint 2022-01-08 10:41:30 +01:00
Michael Bumann
bc3cfd54b8 Merge pull request #13 from bumi/graceful-shutdown
Server graceful shutdown
2022-01-08 11:35:14 +02:00
Michael Bumann
0dae101e93 Merge branch 'main' into graceful-shutdown 2022-01-08 11:35:08 +02:00
Michael Bumann
2de58e821e Merge pull request #14 from bumi/add-rate-limiter
Add default rate limiter
2022-01-08 11:34:14 +02:00
Viktor Patchev
4cb8996aa3 Add default rate limiter 2022-01-07 20:47:16 +01:00
Viktor Patchev
87af4fcd93 Server graceful shutdown 2022-01-07 20:41:50 +01:00
Viktor Patchev
622088a97d Add http req body limit 2022-01-07 20:35:56 +01:00
Viktor Patchev
cd2bee98ef Add invoice endpoint 2022-01-07 18:24:04 +01:00
Viktor Patchev
7aefaf3905 Changed json response on /create 2022-01-07 11:38:50 +01:00
Viktor Patchev
ed2d97e59e Load req params from raw json 2022-01-07 11:28:38 +01:00
Viktor Patchev
04ffbd826b Remove group routes 2022-01-07 11:00:33 +01:00
Michael Bumann
668f8e5884 Add Echo recover middleware 2022-01-07 00:28:00 +01:00
Michael Bumann
1eba960c02 Add Echo request logging 2022-01-07 00:26:30 +01:00
Viktor Patchev
ccdb9bb614 Create refresh token and update db field 2022-01-06 18:54:44 +01:00
Viktor Patchev
b86e4fa54b Update access token in db and add loggedIn middleware 2022-01-06 18:43:42 +01:00
Viktor Patchev
98edef469e Generate random alphanumeric strings for login and passowrd 2022-01-06 18:14:25 +01:00
Viktor Patchev
00ccf96f76 User authentication logic 2022-01-06 17:43:55 +01:00
Viktor Patchev
5ec945e2c9 Setup tests 2022-01-06 15:08:57 +01:00
Viktor Patchev
232511214f Create user logic 2022-01-06 14:19:45 +01:00
Viktor Patchev
8c20078aa4 Clean code 2022-01-06 13:42:24 +01:00
Viktor Patchev
f7acbf78aa Add conditional db connection 2022-01-06 13:16:40 +01:00
Viktor Patchev
6c3ff64836 Update to newer gorm version 2022-01-06 11:09:01 +01:00
Viktor Patchev
da7701214e Add models 2022-01-05 19:29:47 +01:00