import express from "express";
import create from "./create";
import update from "./update";

const router = express.Router();
export default router;

router.use(create);
router.use(update);

@@ -144,16 +144,1111 @@
 outer;%0A%0A
+// This is the description of how the build system work. We call the %22client%22 the uploader,%0A// usually the CLI.The build API is separated in two phases:%0A%0A// ## 1. Create %E2%80%94 POST /builds%0A%0A// The client sends the screenshots keys (sha256) and the commit.%0A// The server creates the build along signed S3 URLs to upload the screenshots.%0A%0A// ## *Client requirement*%0A// Client must upload the screenshots using the signed URLs it got from the server before starting the phase 2.%0A%0A// ## 2. Update / Finalize %E2%80%94 PUT /builds/:buildId%0A%0A// The client sends the %60screenshots%60 (%60key%60 and %60name%60).%0A// The server verifies that the screenshots are present and mark the build as complete.%0A%0A// ## Parallel mode%0A%0A// The parallel mode is used when the client wants to upload the screenshots in several times.%0A// To activate the pallaral mode, the client must send the %60parallel%60 parameter with a value of %60true%60.%0A// It works with two fondamental parameters:%0A// - %60parallelTotal%60: the total number of upload batches (usually the number of parallel workers)%0A// - %60parallelNonce%60: the nonce of the current upload batch%0A%0A
 router.u

document build system