Hayden
c71f077466
refactor: rewrite to cookie based auth ( #578 )
...
* rewrite to cookie based auth
* remove interceptor
Former-commit-id: 1365bdfd46
2023-10-06 19:44:43 -08:00
Hayden
64b3ac3e94
change safeserve -> httpkit ( #405 )
2023-04-09 10:39:43 -08:00
Hayden
db80f8a159
chore: refactor api endpoints ( #339 )
...
* move typegen code
* update taskfile to fix code-gen caches and use 'dir' attribute
* enable dumping stack traces for errors
* log request start and stop
* set zerolog stack handler
* fix routes function
* refactor context adapters to use requests directly
* change some method signatures to support GID
* start requiring validation tags
* first pass on updating handlers to use adapters
* add errs package
* code gen
* tidy
* rework API to use external server package
2023-03-20 20:32:10 -08:00
Hayden
12975ce26e
feat: change auth to use cookies ( #301 )
...
* frontend cookie implementation
* accept cookies for authentication
* remove auth store
* add self attr
2023-02-17 21:57:21 -09:00
Hayden
bd321af29f
chore: developer cleanup ( #300 )
...
* new PR tasks
* add homebox to know words
* formatting
* bump deps
* generate db models
* ts errors
* drop id
* fix accessor
* drop unused time field
* change CI
* add expected error
* add type check
* resolve serveral type errors
* hoise in CI
2023-02-17 21:41:01 -09:00
Hayden
de419dc37d
feat: auth-roles, image-gallery, click-to-open ( #166 )
...
* schema changes
* db generate
* db migration
* add role based middleware
* implement attachment token access
* generate docs
* implement role based auth
* replace attachment specific tokens with gen token
* run linter
* cleanup temporary token implementation
2022-12-03 10:55:00 -09:00
Hayden
cd82fe0d89
refactor: remove empty services ( #116 )
...
* remove empty services
* remove old factory
* remove old static files
* cleanup more duplicate service code
* file/folder reorg
2022-10-29 20:05:38 -08:00
Hayden
6529549289
refactor: http interfaces ( #114 )
...
* implement custom http handler interface
* implement trace_id
* normalize http method spacing for consistent logs
* fix failing test
* fix linter errors
* cleanup old dead code
* more route cleanup
* cleanup some inconsistent errors
* update and generate code
* make taskfile more consistent
* update task calls
* run tidy
* drop `@` tag for version
* use relative paths
* tidy
* fix auto-setting variables
* update build paths
* add contributing guide
* tidy
2022-10-29 18:15:35 -08:00
Hayden
18488f5b15
refactor: cleanup-api-functions ( #94 )
...
* cleanup items endpoints
* refactor group routes
* refactor labels routes
* remove old partial
* refactor location routes
* formatting
* update names
* cleanup func
* speedup test runner with disable hasher
* remove duplicate code
2022-10-16 18:50:44 -08:00
Hayden
343290a55a
refactor: repositories ( #28 )
...
* cleanup unnecessary mocks
* refactor document storage location
* remove unused function
* move ownership to document types to repo package
* move types and mappers to repo package
* refactor sets to own package
2022-09-27 15:52:13 -08:00
Hayden
31b34241e0
feat: item-attachments CRUD ( #22 )
...
* change /content/ -> /homebox/
* add cache to code generators
* update env variables to set data storage
* update env variables
* set env variables in prod container
* implement attachment post route (WIP)
* get attachment endpoint
* attachment download
* implement string utilities lib
* implement generic drop zone
* use explicit truncate
* remove clean dir
* drop strings composable for lib
* update item types and add attachments
* add attachment API
* implement service context
* consolidate API code
* implement editing attachments
* implement upload limit configuration
* improve error handling
* add docs for max upload size
* fix test cases
2022-09-24 11:33:38 -08:00
Hayden
5f589f95b8
inject defaults + cleanup
2022-09-04 16:41:12 -08:00
Hayden
10f5da4727
comment out admin mw
2022-09-03 10:40:25 -08:00
Hayden
68204a4f22
switch to zero log
2022-09-03 10:38:35 -08:00
Hayden
682774c9ce
cleanup user token access
2022-08-30 18:11:23 -08:00
Hayden
b83505104a
align types with new db schema
2022-08-30 10:05:11 -08:00
Hayden
4c76f6b367
update imports
2022-08-29 18:40:54 -08:00
Hayden
29f583e936
Initial commit
2022-08-29 18:30:36 -08:00