gohttpserver/internal
sneak f7ab09c2c3 Add Blog Posts CRUD with SQLite
- Add modernc.org/sqlite (pure Go, no CGO)
- Create models package with Post struct
- Implement SQLite connection and schema auto-creation
- Add CRUD methods to database package
- Create post handlers with JSON API
- Register API routes: GET/POST/PUT/DELETE /api/v1/posts
- Set default DBURL to file:./data.db with WAL mode
2025-12-27 12:43:30 +07:00
..
config Add Blog Posts CRUD with SQLite 2025-12-27 12:43:30 +07:00
database Add Blog Posts CRUD with SQLite 2025-12-27 12:43:30 +07:00
globals this is nowhere near working yet 2022-11-28 04:59:20 +01:00
handlers Add Blog Posts CRUD with SQLite 2025-12-27 12:43:30 +07:00
healthcheck Replace zerolog with log/slog from stdlib 2025-12-27 12:02:05 +07:00
logger Replace zerolog with log/slog from stdlib 2025-12-27 12:02:05 +07:00
middleware Replace zerolog with log/slog from stdlib 2025-12-27 12:02:05 +07:00
models Add Blog Posts CRUD with SQLite 2025-12-27 12:43:30 +07:00
server Add Blog Posts CRUD with SQLite 2025-12-27 12:43:30 +07:00