Commit Graph

1131 Commits

Author SHA1 Message Date
Derrick Hammer 857ffe4fdd
refactor: need to use a param struct to get protocol value group 2024-02-17 03:28:05 -05:00
Derrick Hammer afc0b7a343
refactor: replicate what we did in api and remove the need for an InitFunc 2024-02-17 03:24:44 -05:00
Derrick Hammer 12a5f3f631
fix: missing fx.Annotate 2024-02-17 03:21:27 -05:00
Derrick Hammer 30b18a4ced
fix: update Routes signature 2024-02-17 03:14:17 -05:00
Derrick Hammer af0f3e19de
refactor: switch to using Supply 2024-02-17 03:12:44 -05:00
Derrick Hammer 24694ecbae
feat: create new swagger package 2024-02-17 03:05:22 -05:00
Derrick Hammer 3b9f4bbe3d
feat: add MergeRoutes 2024-02-17 03:04:27 -05:00
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