@rpcbase/server 0.60.0 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/express/index.js
CHANGED
|
@@ -3,6 +3,7 @@ const cors = require("cors")
|
|
|
3
3
|
const express = require("express")
|
|
4
4
|
const body_parser = require("body-parser")
|
|
5
5
|
|
|
6
|
+
const dev_save_coverage = require("./dev_save_coverage")
|
|
6
7
|
const session_middleware = require("./session_middleware")
|
|
7
8
|
|
|
8
9
|
const is_production = process.env.IS_PRODUCTION === "yes"
|
|
@@ -55,6 +56,8 @@ module.exports = () => {
|
|
|
55
56
|
|
|
56
57
|
app.get("/api/ping", (req, res) => res.json({message: "pong"}))
|
|
57
58
|
app.post("/api/ping", (req, res) => res.json({message: "pong"}))
|
|
59
|
+
console.log("WITH COVERAGE WOW")
|
|
60
|
+
dev_save_coverage(app)
|
|
58
61
|
|
|
59
62
|
return app
|
|
60
63
|
}
|