diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 6 | ||||
| -rw-r--r-- | src/metadata.ts | 3 |
2 files changed, 0 insertions, 9 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(); }); diff --git a/src/metadata.ts b/src/metadata.ts deleted file mode 100644 index 353d9bf..0000000 --- a/src/metadata.ts +++ /dev/null @@ -1,3 +0,0 @@ -const metadata = {}; - -export default metadata;
\ No newline at end of file |
