Commit Graph

1274 Commits

Author SHA1 Message Date
Derrick Hammer 7c330e308e
refactor: allow Routes to return an error 2024-02-17 03:04:15 -05:00
Derrick Hammer f34c041401
fix: UploadExists/GetUpload needs ctx 2024-02-17 02:39:42 -05:00
Derrick Hammer a5f0a4bfcc
fix: GetUploadReader needs ctx 2024-02-17 02:38:07 -05:00
Derrick Hammer c452b0c271
refactor: add context 2024-02-17 02:37:52 -05:00
Derrick Hammer b231f9d769
refactor: need to alias as interface 2024-02-17 02:36:27 -05:00
Derrick Hammer 6845dac609
refactor: add context to all tus apis 2024-02-16 22:08:34 -05:00
Derrick Hammer c468a81543
refactor: remove tus out of method names 2024-02-16 22:03:34 -05:00
Derrick Hammer 93e727ab3b
refactor: epic protocol and storage design refactor 2024-02-16 22:00:53 -05:00
Derrick Hammer c534162d6c
feat: add DeleteObject 2024-02-16 21:59:02 -05:00
Derrick Hammer d7da471b8b
refactor: update parameters and change MultipartUpload to UploadObjectMultipart 2024-02-16 21:58:44 -05:00
Derrick Hammer 1812b9cd38
refactor: change PinByHash to take hash in byte form 2024-02-16 21:57:20 -05:00
Derrick Hammer a76d13e75d
feat: add metadata service 2024-02-16 21:56:38 -05:00
Derrick Hammer 44c564761c
refactor: store length in result 2024-02-16 21:55:16 -05:00
Derrick Hammer ffbb7e371a
fix: pointer not needed as FileExists is by ref now 2024-02-16 08:53:53 -05:00
Derrick Hammer cd9cccc2a9
refactor: merge http handler back to account api struct 2024-02-16 08:52:30 -05:00
Derrick Hammer 7834471b84
refactor: merge http handler back to s5 api struct 2024-02-16 08:49:19 -05:00
Derrick Hammer 7f5847f7da
chore: remove commented code 2024-02-16 08:42:26 -05:00
Derrick Hammer f0d7a337db
refactor: change how init of protocols works and make router building part of the interface 2024-02-16 08:39:55 -05:00
Derrick Hammer 1b3934c793
refactor: update usage of errors 2024-02-15 21:06:30 -05:00
Derrick Hammer 16e8c84daa
refactor: OTPDisable needs to return *AccountError 2024-02-15 21:00:08 -05:00
Derrick Hammer 24d491ec4e
refactor: UpdateAccountName needs to return *AccountError 2024-02-15 20:56:48 -05:00
Derrick Hammer 1c3bfdc493
refactor: add ErrorCodeToHttpStatus 2024-02-15 20:56:08 -05:00
Derrick Hammer 3f90cbfe09
refactor: use new errors and optimize code 2024-02-15 20:55:38 -05:00
Derrick Hammer fc53bd3083
refactor: make PutFileSmall handle all tasks 2024-02-15 20:55:21 -05:00
Derrick Hammer c084743b47
refactor: apply auth and proxy middlewares 2024-02-14 00:41:02 -05:00
Derrick Hammer 829852c6c1
refactor: use new error struct and error messages 2024-02-14 00:24:22 -05:00
Derrick Hammer 593d8ea381
refactor: ensure key is unique 2024-02-14 00:13:28 -05:00
Derrick Hammer 41a6772c9f
chore: emailverifier no longer needed here 2024-02-13 23:32:23 -05:00
Derrick Hammer 143a563a51
refactor: param consistency changes 2024-02-13 23:31:08 -05:00
Derrick Hammer 8b9471aa04
refactor: switch to GetUserFromContext 2024-02-13 23:29:48 -05:00
Derrick Hammer 634a285ea8
refactor: use uint and param consistency changes 2024-02-13 23:29:36 -05:00
Derrick Hammer 96758a5559
feat: add opt support to account, refactor validation api 2024-02-13 23:23:45 -05:00
Derrick Hammer 431dec55f9
feat: otp api support 2024-02-13 23:23:01 -05:00
Derrick Hammer 16689f6c31
feat: add GetUserFromContext 2024-02-13 23:22:36 -05:00
Derrick Hammer 9d25690d72
feat: add OTP to user model 2024-02-13 23:21:53 -05:00
Derrick Hammer 93e7563bed
refactor: don't use pointer receiver 2024-02-13 22:38:13 -05:00
Derrick Hammer f645499c7f
refactor: prefix all jwt helpers 2024-02-13 22:31:44 -05:00
Derrick Hammer 50c4d8b945
refactor: clean up use of auth middleware in s5 2024-02-13 22:25:50 -05:00
Derrick Hammer 0b3d54e7c5
refactor: major middleware refactor 2024-02-13 22:17:34 -05:00
Derrick Hammer 9f6f2c9c87
feat: add purpose to jwt with consts 2024-02-13 20:58:17 -05:00
Derrick Hammer 764a7cbdaf
feat: add iat to jwt 2024-02-13 20:53:38 -05:00
Derrick Hammer 171b810504
fix: remove duplicate check 2024-02-13 20:01:45 -05:00
Derrick Hammer 8423578bdd
refactor: more re-organizing 2024-02-13 20:00:16 -05:00
Derrick Hammer f5bb0fa45f
chore: remove un-used function 2024-02-13 19:58:24 -05:00
Derrick Hammer 2d3b755cb2
refactor: update use of LoginPassword 2024-02-13 19:58:00 -05:00
Derrick Hammer 9b748e1f57
refactor: de-duplicate login logic and re-organize code 2024-02-13 19:57:41 -05:00
Derrick Hammer 40b830d669
refactor: update account login and ip address in LoginPassword 2024-02-13 19:52:18 -05:00
Derrick Hammer 23113d0f9c
refactor: create updateAccountInfo 2024-02-13 19:49:08 -05:00
Derrick Hammer 6f61f09ba4
refactor: move email validation to gorm 2024-02-13 19:41:00 -05:00
Derrick Hammer 302821d749
refactor: more refactoring of methods and move some validation to gorm 2024-02-13 19:36:23 -05:00