{"size": 319, "ext": "js", "max_stars_repo_path": "examples/simple-monk.js", "max_stars_repo_name": "oskosk/db-to-express-rest", "max_stars_repo_stars_event_min_datetime": "2015-03-30T01:34:40.000Z", "max_stars_repo_stars_event_max_datetime": "2015-10-19T13:22:32.000Z", "max_issues_repo_path": "examples/simple-monk.js", "max_issues_repo_name": "oskosk/db-to-express-rest", "max_issues_repo_issues_event_min_datetime": "2015-03-05T04:04:19.000Z", "max_issues_repo_issues_event_max_datetime": "2016-12-31T23:24:56.000Z", "max_forks_repo_path": "examples/simple-monk.js", "max_forks_repo_name": "oskosk/db-to-express-rest", "max_forks_repo_forks_event_min_datetime": "2018-08-21T11:28:07.000Z", "max_forks_repo_forks_event_max_datetime": "2018-08-21T11:28:07.000Z"}
{"max_stars_count": 5, "max_issues_count": 4, "max_forks_count": 1, "avg_line_length": 18.7647058824, "max_line_length": 40, "alphanum_fraction": 0.6175548589}
var express = require("express");

app = express();

var expressrest = require("../");

app.use("/api", expressrest("users", {
  dbtype: "mongodb"
}));
app.use("/api", expressrest("cars", {
  dbtype: "mongodb"
}));
app.use("/api", expressrest("estates", {
  dbtype: "mongodb"
}));

app.listen(process.env.PORT || 3000);