diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-12 20:26:47 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-12 20:26:47 -0800 |
| commit | 281e3ec0a8cfcf06d8e358e5d397a828b9a6f456 (patch) | |
| tree | bd4acfec418d4143699d0ac4db572af29003135e /models/item | |
| parent | 16186a344a7b61633cb7342aac37ac56ad83d261 (diff) | |
| download | neko-281e3ec0a8cfcf06d8e358e5d397a828b9a6f456.tar.gz neko-281e3ec0a8cfcf06d8e358e5d397a828b9a6f456.tar.bz2 neko-281e3ec0a8cfcf06d8e358e5d397a828b9a6f456.zip | |
Refactor backend to a clean REST API
- Created new 'api' package with testable router and RESTful handlers
- Handlers in 'api' use proper HTTP methods and status codes
- Standardized JSON responses and error handling
- Refactored 'web' package to delegate logic to 'api'
- Maintained backward compatibility for legacy frontend routes
- Simplified 'web/web_test.go' and added comprehensive 'api/api_test.go'
- All tests passing with improved modularity
Diffstat (limited to 'models/item')
0 files changed, 0 insertions, 0 deletions
