{"size": 338, "ext": "js", "max_stars_repo_path": "app/v1/app.js", "max_stars_repo_name": "niomwungeri-fabrice/taxi-24", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/v1/app.js", "max_issues_repo_name": "niomwungeri-fabrice/taxi-24", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/v1/app.js", "max_forks_repo_name": "niomwungeri-fabrice/taxi-24", "max_forks_repo_forks_event_min_datetime": "2020-06-26T20:31:52.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-26T20:31:52.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 18.7777777778, "max_line_length": 57, "alphanum_fraction": 0.6568047337}
import express from "express";
import dotenv from "dotenv";
import cors from "cors";
import routes from "./routes";

dotenv.config();
const app = express();

app.use(express.json());
app.use(cors());

app.get("/", (req, res) =>
  res.json({ message: "Welcome to taxi 24 Web API v1." })
);
app.use("/api/v1", routes);

export default app;
