Skip to content

Commit

Permalink
[refactor]: Standardized usage of quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-patra committed Jul 24, 2022
1 parent 007c968 commit 6817bb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
const express = require("express");
const api = require('./controllers/routes');
const constants = require('./helpers/constants');
const api = require("./controllers/routes");
const constants = require("./helpers/constants");
const app = express();

const PORT = process.env.PORT || 80;
const HOST = process.env.HOST || "http://localhost"

app.use([express.json(), express.urlencoded({extended: true})]);
app.use('/api', api);
app.use("/api", api);

app.get('/', (_, res)=>{
app.get("/", (_, res)=>{
res.status(200).send(constants.root);
});

app.get('/about', (_, res)=>{
app.get("/about", (_, res)=>{
res.status(200).send(constants.about);
});

app.get('/reference', (_, res)=>{
app.get("/reference", (_, res)=>{
res.status(200).send(constants.api_urls);
});

app.get('*', (_, res)=>{
app.get("*", (_, res)=>{
res.status(404).send(constants[404]);
});

Expand Down

0 comments on commit 6817bb6

Please sign in to comment.