memos/api/v1
Elliot Chen 3181c076b2
feat: add {uuid} in path template when using local storage or S3 ()
Add {uuid} in path template when using local storage or S3

Add an addition tag `{uuid}` to the `replacePathTemplate`.

It is a workaround to leak the public links of a resource when using S3-based object storage. Currently, all resource blobs stored in S3 (R2, OSS) are set to be public. It is insecure as the resources for the private memos are also accessible on the Internet. Using an additional {uuid} might reduce this risk.

Meanwhile, it is also possible to avoid filename conflict
..
auth.go chore: update user setting names
common.go chore: update memo view activity
docs.go chore: regenerate swagger docs
http_getter.go chore: fix tag in http_getter.go ()
idp.go chore: move common packages to internal
jwt.go chore: fix jwt acl
memo.go chore: tweak variable names
memo_organizer.go chore: move common packages to internal
memo_relation.go chore: implement webhook dispatch in api v1
resource.go feat: add {uuid} in path template when using local storage or S3 ()
rss.go chore: tweak frontend routes register
storage.go chore: move common packages to internal
swagger.yaml chore: regenerate swagger docs
system.go chore: skip invalida setting checks
system_setting.go chore: use consistent relative paths for resources ()
tag.go chore: remove outdated activity definition
tag_test.go revert: fix: exclude all punctuation chars except underscore in tags ()
user.go chore: prevent archive/delete current user
v1.go chore: deprecate user setting legacy api