Commit Graph

63 Commits

Author SHA1 Message Date
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
5a830c9bef Create util package 2024-08-03 09:53:08 +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
63c96edc88 Add setting userID from token as in middelware 2024-08-03 08:50:06 +03:00
2d61d59179 Add Id to tokens.Token struct and func GetID to tokens package 2024-08-03 08:48:33 +03:00
39cecc80d1 Add Middleware to routes and update Swagger to add that 2024-08-03 08:43:41 +03:00
c959d9f173 Add middleware package with auth.go 2024-08-03 08:43:08 +03:00
bfa9af930e Add AmIAllowed func to tokens package 2024-08-03 08:22:01 +03:00
20c3beef53 Remove db package code that was used as example and testing 2024-08-03 08:17:18 +03:00
6c2032dd42 Add cards group of endpoints 2024-08-03 08:16:55 +03:00
2cca30a487 Create handlers for cards 2024-08-03 08:16:18 +03:00
39c953b6d6 Add Transfer to autoMigrate 2024-08-03 08:15:39 +03:00
ffa8d9211f Create Transfer model for database 2024-08-03 08:15:02 +03:00
83cf0bd71c Add UserID many-to-one relationship to User in db for Card 2024-08-03 08:06:46 +03:00
ffc4344adf Add Message and DbCard types to types 2024-08-03 08:06:07 +03:00
aa69960519 Rename Account->Card in db package 2024-08-03 08:05:46 +03:00
cf09928a39 Small rename 2024-08-03 00:07:14 +03:00
0ffdeb7114 More groups! 2024-08-03 00:06:21 +03:00
f141e4c98c Redo swag init correctly 2024-08-02 23:37:26 +03:00
52197fe0a6 Refactored main.go for http-server 2024-08-02 23:37:16 +03:00
1c12d29aa5 Add automigrate for users table 2024-08-02 23:37:05 +03:00