Commit Graph

43 Commits

Author SHA1 Message Date
957f1e8363 Update transfer handlers to show and use card transformer that will use currency transformer as well if their field is not nil 2024-11-24 00:28:22 +02:00
4db167085a Add Currency and DisplayName to card handlers 2024-11-24 00:27:02 +02:00
e1a46f5fc7 Update handler and types.DbCard to accept and send new fields 2024-11-20 21:00:17 +02:00
40ec90687a Add currency/all endpoint and handler 2024-11-20 20:29:00 +02:00
cb60cb39d5 Add payment endpoint and handlers 2024-11-20 18:19:57 +02:00
3ce1c5c2d0 Change itemTransform function to use Item.Price directly 2024-11-20 18:19:43 +02:00
a52b108bf8 Add metric /all endpoint and handler 2024-11-19 10:13:41 +02:00
83f69a2135 Add /all endpoint and handler for income 2024-11-19 10:12:04 +02:00
9f7d93ed19 Fix issue with /add endpoint for income 2024-11-19 10:11:40 +02:00
21afd95d98 Refactor handlers/income.go 2024-11-18 19:38:44 +02:00
dd19718dc8 Add handlers for finding items 2024-11-18 09:55:27 +02:00
a47c75bb52 Add handlers for transfer 2024-11-16 20:31:31 +02:00
d230ee7cf2 Fix errors in swagger docs 2024-11-16 11:45:47 +02:00
2827a31fc9 Add Expense CRUD handlers 2024-11-16 11:43:11 +02:00
e26808e2f3 Add loging ShouldBindJSON error to console 2024-11-16 11:42:59 +02:00
29a0353888 Small refactoring and added all route for categories 2024-11-11 22:27:16 +02:00
9b77237d50 Reforming and adding all endpoint for types 2024-11-11 21:30:40 +02:00
ba94ad6084 Add missing cardTransform function call 2024-11-10 08:49:12 +02:00
7b8405abdd Small refactoring and adding getting all handler to cards 2024-11-10 08:25:35 +02:00
0b968d33a8 Add error on binding values to JSON on create request 2024-11-10 08:23:45 +02:00
afb8cb9773 Change types.Message to contain Info field and not Message field 2024-11-10 08:23:28 +02:00
a0b96e25b2 Add missing creating part of sessions on registration and login 2024-11-08 17:05:03 +02:00
b3362d4a66 Change user handlers to set cookies on registration and log in 2024-11-06 19:48:02 +02:00
155deb889c Change name of module 2024-11-04 17:55:14 +02:00
9731073e9f Refactor Debt handlers 2024-11-02 00:05:53 +02:00
de7926337a Change db.Card.Value to db.Card.Balance and types.DbCard.Value to types.DbCard.Balance 2024-11-01 09:26:37 +02:00
340b39c35e Refactor category handlers 2024-10-31 23:06:42 +02:00
30c6c59e63 Add type handlers 2024-10-31 11:41:49 +02:00
0c4cca73a5 Refactored Card handlers so they will take 150 less lines of code 2024-10-31 11:07:51 +02:00
33b5b73ab2 Add generic CRUD interface for UserIdentifiable entities 2024-10-31 11:07:34 +02:00
b09e85b4cb Extract GetUserID and ParseID to boilerplate.go in handlers package 2024-10-31 11:05:52 +02:00
94b933031f Add income handlers 2024-08-14 18:20:57 +03:00
f071c72335 Add debt handlers 2024-08-12 18:31:14 +03:00
ecdc3b235c Add ping 2024-08-06 22:51:34 +03:00
7c37151a31 Add categories handlers 2024-08-03 13:40:11 +03:00
045221a3ad Remove useless body requirement for CardDeleteId 2024-08-03 13:40:01 +03:00
0c9bde7c5e Typo 2024-08-03 09:54:29 +03:00
237389d179 Add CardPutId and CardDeleteId handlers 2024-08-03 09:53:38 +03:00
52ce4a181b Add handling and securing info from different users 2024-08-03 09:15:52 +03:00
aa985e6715 Add handling UserID from c.params for CardAdd handler 2024-08-03 09:10:40 +03:00
39cecc80d1 Add Middleware to routes and update Swagger to add that 2024-08-03 08:43:41 +03:00
2cca30a487 Create handlers for cards 2024-08-03 08:16:18 +03:00
e05c9185d6 Add handlers 2024-08-02 23:36:32 +03:00