Commit Graph

84 Commits

Author SHA1 Message Date
7d1ca772c0 Add BeforeSave hook for type for duplicate detection 2024-10-31 11:09:11 +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
255f812078 Add clarity to cards errors 2024-10-31 11:05:06 +02:00
79b83026f5 Fix issue with updating the same entity 2024-10-31 10:09:50 +02:00
db53f2a486 Add implicit implementation of db.UserIdentifiable for Card 2024-10-31 10:09:38 +02:00
506586a187 Add db.Identifiable and db.UserIdentifiable interfaces 2024-10-31 10:09:10 +02:00
55ea7409ed Add ID field to types.DbType 2024-10-31 10:07:48 +02:00
06bb34c0d7 Fix token issue 2024-10-31 10:07:36 +02:00
cfb97485e3 Add DbType for API requests 2024-10-29 12:27:26 +02:00
713f19a201 Add comment field for Item schema 2024-10-29 12:25:01 +02:00
0e081297d0 Add Type to database schema 2024-10-29 12:24:46 +02:00
9cf82d5301 Add income routes 2024-08-14 18:21:03 +03:00
94b933031f Add income handlers 2024-08-14 18:20:57 +03:00
9f4a9e3a83 Add DbIncome 2024-08-14 18:20:51 +03:00
746b4f15e7 Add Content-Type to AllowHeaders 2024-08-14 15:05:55 +03:00
db78c5c6c2 small 2024-08-14 15:05:42 +03:00
514d2bac59 Make api listens to localhost 2024-08-12 18:48:09 +03:00
2eec801907 Make api listens to 3001 port on localhost 2024-08-12 18:47:36 +03:00
7adde1fee1 Add debt CRUD routes 2024-08-12 18:33:17 +03:00
30c7251e64 Remove cfyne as it will be anothe application. 2024-08-12 18:32:00 +03:00
f071c72335 Add debt handlers 2024-08-12 18:31:14 +03:00
0947a4fdf5 Add DbDebt to types 2024-08-12 18:31:07 +03:00
a09f3f87e9 Change localhost to some domain 2024-08-08 20:30:59 +03:00
1d1463b38f Add user to debt and income 2024-08-08 20:14:50 +03:00
43005c6f3b .... 2024-08-06 23:59:05 +03:00
74dda89c69 Add listening on localhost 2024-08-06 23:08:50 +03:00
e7c4327fce Add instal-swag target to Makefile 2024-08-06 22:54:24 +03:00
ecdc3b235c Add ping 2024-08-06 22:51:34 +03:00
d5c898520d Add CORS 2024-08-06 14:32:10 +03:00
ea2c50c654 Add Date and User binding to Transfer 2024-08-03 15:50:22 +03:00
3b17cff1ea Add comment to income 2024-08-03 15:50:03 +03:00
9adad26639 Add comment to debt 2024-08-03 15:49:58 +03:00
7a63668801 Add redirects 2024-08-03 13:43:58 +03:00
523b90b604 Add categories routes 2024-08-03 13:40:17 +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
ab22cdf2ef Add DbCategory struct to types package 2024-08-03 13:39:42 +03:00
218ef61537 Fixes 2024-08-03 10:57:13 +03:00
5ce7223b92 Fix for category when searching parents when ParentID is zero 2024-08-03 10:52:38 +03:00
12fd07c0a3 Add Category.BeforeSave func 2024-08-03 10:49:46 +03:00
f59b57f147 Add user to Category 2024-08-03 10:46:15 +03:00
8960e2e7ba Add userID to dup find for Card 2024-08-03 10:45:09 +03:00
daec467e8c Add cloc-api target for Makefile 2024-08-03 10:44:17 +03:00
40fa706514 Add BeforeSave to card 2024-08-03 10:44:06 +03:00
0c9bde7c5e Typo 2024-08-03 09:54:29 +03:00
fd5d283946 Add all CRUD Routes for cards 2024-08-03 09:53:50 +03:00
237389d179 Add CardPutId and CardDeleteId handlers 2024-08-03 09:53:38 +03:00
c61d0337b3 Add id field to DbCard in types package 2024-08-03 09:53:22 +03:00