Skip to content
This repository has been archived by the owner on Aug 10, 2018. It is now read-only.

Commit

Permalink
-cleaned up json data. -set up routes to serve data from the json
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonkucera committed Nov 7, 2015
1 parent 9e6522f commit a97b38a
Show file tree
Hide file tree
Showing 6 changed files with 37,899 additions and 6,330 deletions.
4 changes: 0 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//config middleware
var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');

var routes = require('./routes/index');
Expand All @@ -16,15 +15,12 @@ app.set('view engine', 'ejs');
//other middleware setup
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));

//route setup
app.use('/', routes);


// app.use('/api/course/', course);

// error handlers
if (app.get('env') === 'development') {
app.use(function(err, req, res, next) {
Expand Down
2 changes: 0 additions & 2 deletions bak.json

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
},
"dependencies": {
"body-parser": "~1.13.2",
"cookie-parser": "~1.3.5",
"debug": "~2.2.0",
"express": "~4.13.1"
}
Expand Down
Loading

0 comments on commit a97b38a

Please sign in to comment.