Skip to content

Commit b673aab

Browse files
committed
implementation notes
1 parent 2d59b80 commit b673aab

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

multiple-servers/IMPLEMENTATION.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,13 @@ A self-contained website is in `assets`. This is just a simple image gallery tha
4040
`cmd/static-server/main.go` accept CLI flag to assets directory, create config, pass to the server
4141

4242
Server listens, reads files when it gets a request. Using `http.ServeFile` — works v well.
43+
44+
## API
45+
46+
Copied over from server-database, with file split up:
47+
48+
- `util.go` for `MarshalWithIndent`
49+
- `images.go` for all images
50+
- `api.go` for the DB connection & HTTP handlers
51+
52+
This has the same setup steps as server-database, so those can be copied over.

0 commit comments

Comments
 (0)