Browse Source

Reformatted index.js

pull/18/head
Peter Morgan 5 years ago
parent
commit
674dda1ecf
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      routes/index.js

+ 4
- 8
routes/index.js View File

@ -1,17 +1,13 @@
const routes = require('express').Router();
const api = require('./api');
routes.use('/api', api);
routes.get("/", (request, result) =>
{
result.redirect("index.html");
routes.get("/", (request, response) => {
response.redirect("index.html");
});
routes.get('*', (request, result) =>
{
result.redirect("404.html");
routes.get('*', (request, response) => {
response.redirect("404.html");
});
module.exports = routes;

Loading…
Cancel
Save