Commit Graph

137 Commits

Author SHA1 Message Date
a47c75bb52 Add handlers for transfer 2024-11-16 20:31:31 +02:00
bf9628d1d7 Add types.DbTransfer 2024-11-16 20:31:25 +02:00
66f83cf3aa Add implementation of db.UserIdentifiable for db.Transfer and add db hooks 2024-11-16 20:31:18 +02:00
7b461ce985 Fix expense error in AfterDelete hook 2024-11-16 20:30:47 +02:00
d230ee7cf2 Fix errors in swagger docs 2024-11-16 11:45:47 +02:00
18aad2c225 Add routes to handlers for expense group 2024-11-16 11:43:32 +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
137d343773 Add types.DbExpense 2024-11-16 11:42:43 +02:00
893f2aa365 Add Expense entity to database 2024-11-16 11:42:28 +02:00
29a0353888 Small refactoring and added all route for categories 2024-11-11 22:27:16 +02:00
22007ef38e Add SelfReferencing check in Category database BeforeSave hook 2024-11-11 22:26:47 +02:00
8a7d52efda Fix Parent finding issue with BeforeSave hook and duplicate finding error for category 2024-11-11 22:26:21 +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
85f8972d5e Add route to CardGetAll handler 2024-11-10 08:25:44 +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
88981b8141 Add ignoring of *.log files in gitignore 2024-11-08 17:07:00 +02:00
4e1faf26be Remove Debug part of fetching data from database 2024-11-08 17:06:31 +02:00
ad25c69c79 Redirect db log into db.log file 2024-11-08 17:05:23 +02:00
a0b96e25b2 Add missing creating part of sessions on registration and login 2024-11-08 17:05:03 +02:00
f6c226e97a Fix errors with trying to fetch sessions from database 2024-11-08 17:04:43 +02:00
b3362d4a66 Change user handlers to set cookies on registration and log in 2024-11-06 19:48:02 +02:00
a7fb54eeb7 Change auth middleware to be session based on cookies 2024-11-06 19:47:40 +02:00
06e0a2d7ec Add sessions in tokens package 2024-11-06 19:47:22 +02:00
e9ad95821e Add db.Session type 2024-11-06 19:47:12 +02:00
c245039015 Add consts package with cookies name for session in it 2024-11-06 19:46:39 +02:00
1c4756c758 Add username for Account type in types package 2024-11-06 19:45:54 +02:00
08a409caaf Add Session struct 2024-11-06 19:44:52 +02:00
a45423b5e2 For now disabling only one token for user 2024-11-06 19:44:10 +02:00
bfa8445f78 Change AllowOrigin from everything to Svelte frontend 2024-11-06 19:43:43 +02:00
fdc3ca101c Add /api/authping endpoint 2024-11-06 19:43:20 +02:00
155deb889c Change name of module 2024-11-04 17:55:14 +02:00
1a5941cd89 Add types.DbPayment 2024-11-04 17:53:38 +02:00
85dc709979 Change Port from 3001 to 3000 2024-11-04 17:53:03 +02:00
9731073e9f Refactor Debt handlers 2024-11-02 00:05:53 +02:00
1402825a72 Delete UserID for types.DbDebt 2024-11-02 00:05:45 +02:00
7f4067ce31 Add implemetation for db.UserIdentifiable interface for Debt entity 2024-11-02 00:05:28 +02:00
45123613fd Add User binding to paymets 2024-11-01 22:54:29 +02:00
2eb7ccdaf4 Remove IsValid and add ValidTo field for ItemPrice entity 2024-11-01 22:54:11 +02:00
6c70cc1881 Rename Name for Payment to Title 2024-11-01 09:30:51 +02:00
e2d3d636cb Add TotalCost MetricValue MetricType and Type relationship to ItemBought 2024-11-01 09:30:34 +02:00
48f7b8258e Add Item-Type relationship 2024-11-01 09:30:01 +02:00
02a33aaced Move Comment in Item above Metric fields 2024-11-01 09:29:48 +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
faa2bf7a9e Add implementation for db.UserIdentifiable for Category 2024-10-31 23:05:38 +02:00
6b339e7496 Rephrase ERROR_CATEGORY_PARENT_NOT_FOUND error in db package 2024-10-31 23:05:18 +02:00