Skip to content

Commit

Permalink
Add css
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonglittle committed Dec 5, 2021
1 parent bac1961 commit 5aec14e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion library-express/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ var db = require('./helpers/db-connector');
FUNCTIONS
*/
// app.use(express.static(__dirname + "/public"));
app.use('/', express.static('public'));
// app.use('/', express.static('public'));
app.use('/static', express.static('public'))
app.use(express.static('public/css'))
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// Handlebars setting
Expand Down
1 change: 0 additions & 1 deletion library-express/patrons.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ module.exports = function () {
router.get('/search/:s', function (req, res) {
var callbackCount = 0;
var context = {};
// context.jsscripts = ["searchpatrons.js"];
var mysql = req.app.get('mysql');
getPatronsWithNameLike(req, res, mysql, context, complete);
getTitles(res, mysql, context, complete);
Expand Down
3 changes: 3 additions & 0 deletions library-express/views/layouts/index.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="layout.css" type="text/css">
</head>
<body>
<div>
{{> header}}
Expand Down

0 comments on commit 5aec14e

Please sign in to comment.