We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d59b80 commit b673aabCopy full SHA for b673aab
multiple-servers/IMPLEMENTATION.md
@@ -40,3 +40,13 @@ A self-contained website is in `assets`. This is just a simple image gallery tha
40
`cmd/static-server/main.go` accept CLI flag to assets directory, create config, pass to the server
41
42
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