diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-28 22:57:46 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-28 22:57:46 +0300 |
| commit | d0d2b9f47b371afc94c2cdc58977e388ed30e224 (patch) | |
| tree | fec26b51552ccc0a2c104dbeaf4d6a028916ae49 /internal/api/api.go | |
h9: scaffold go project structure
- Initialize go.mod (github.com/paul/kiss-media-player)
- Add internal/version.go with const Version
- Add internal/config.go with env-based Config struct and validation
(PORT, MEDIA_ROOT, DB_PATH, MAX_UPLOAD_SIZE_MB, SESSION_TIMEOUT_HOURS,
GC_INTERVAL_MINUTES, SHARE_DEFAULT_EXPIRY_DAYS, LOG_LEVEL)
- Add table-driven config validation tests (defaults, overrides, invalid values)
- Add cmd/mediaplayer/main.go with -version flag
- Create directory scaffold: internal/{model,repository,scanner,probe,thumb,
clock,auth,service,api,setassign}, web/{css,js}, k8s
- Add .gitignore for binaries and data.db
- Refactor env parsing into envInt/envString helpers per go-best-practices
Diffstat (limited to 'internal/api/api.go')
| -rw-r--r-- | internal/api/api.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/api.go b/internal/api/api.go new file mode 100644 index 0000000..e9a49ea --- /dev/null +++ b/internal/api/api.go @@ -0,0 +1,2 @@ +// Package api implements HTTP handlers. +package api |
