diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-11-30 01:35:58 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-11-30 01:35:58 -0500 |
| commit | bd041baf0f3c9af7b331becc4c982ce5e835c054 (patch) | |
| tree | 3490bab19205e8c3e5225b9fc618f913d5ef19c8 /src/index.ts | |
| parent | 6e9a8402c3b5901d4cf5c9b470bd8d0e90738ef7 (diff) | |
| download | ao-coverage-bd041baf0f3c9af7b331becc4c982ce5e835c054.tar.gz ao-coverage-bd041baf0f3c9af7b331becc4c982ce5e835c054.tar.bz2 ao-coverage-bd041baf0f3c9af7b331becc4c982ce5e835c054.zip | |
Prepare repository for 0.1.0 release
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/index.ts b/src/index.ts index e55ad10..b6f41e5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,6 @@ import path from "path"; import fs from "fs"; import formats, { Format } from "./formats"; -import metadata from "./metadata"; // Start-up configuration dotenv.config(); @@ -26,9 +25,6 @@ if (!path.isAbsolute(HOST_DIR)) { const app: express.Application = express(); -// serve script for posting coverage report -app.use("/bash", express.static(path.join(__dirname, "..", "public", "bash"))); - // Upload HTML file app.post("/v1/:org/:repo/:branch/:commit.html", (req, res) => { const { org, repo, branch, commit } = req.params; @@ -97,7 +93,6 @@ app.get("/v1/:org/:repo/:branch.svg", (req, res) => { //TODO @Metadata get the commit @@ via metadata const commit = ""; - //res.sendFile(path.join(HOST_DIR, org, repo, branch, commit, "badge.svg")); return res.status(501).send(); }); @@ -108,7 +103,6 @@ app.get("/v1/:org/:repo/:branch.html", (req, res) => { //TODO @Metadata get the commit @@ via metadata const commit = ""; - //res.sendFile(path.join(HOST_DIR, org, repo, branch, commit, "index.html")); return res.status(501).send(); }); |
