memos/proto
Steven 1cf047707b refactor: migrate binary file serving from gRPC to dedicated HTTP fileserver
Migrates attachment and avatar binary serving from gRPC endpoints to a new dedicated HTTP fileserver package, fixing Safari video playback issues and improving architectural separation.

Key changes:
- Created server/router/fileserver package for all binary file serving
- Removed GetAttachmentBinary and GetUserAvatar gRPC endpoints from proto
- Implemented native HTTP handlers with full range request support
- Added authentication support (session cookies + JWT) to fileserver
- New avatar endpoint supports lookup by user ID or username
- Eliminated duplicate auth constants (imports from api/v1)

HTTP endpoints:
- Attachments: /file/attachments/:uid/:filename (unchanged URL)
- Avatars: /file/users/:identifier/avatar (new URL format)

This fixes Safari video/audio playback by using http.ServeContent() which properly handles HTTP 206 Partial Content responses and range request headers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 08:53:52 +08:00
..
api/v1 refactor: migrate binary file serving from gRPC to dedicated HTTP fileserver 2025-12-09 08:53:52 +08:00
gen refactor: migrate binary file serving from gRPC to dedicated HTTP fileserver 2025-12-09 08:53:52 +08:00
store refactor: simplify theme/locale to user preferences and improve initialization 2025-12-02 09:08:46 +08:00
README.md chore: tweak readme 2024-02-23 08:25:54 +08:00
buf.gen.yaml chore: update openapi version 2025-07-20 12:02:16 +08:00
buf.lock chore: update gitignore 2025-04-17 23:11:36 +08:00
buf.yaml chore: update gitignore 2025-04-17 23:11:36 +08:00

README.md

Guide

Prerequisites

Generate

buf generate

Format

buf format -w