Cleanup
This commit is contained in:
parent
6d99ce2e07
commit
8f77e0bbe2
@ -4,11 +4,6 @@
|
||||
<title>Search Profile</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
|
||||
<style type="text/css">
|
||||
.form-horizontal .control-label {
|
||||
text-align: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
@ -61,5 +56,6 @@
|
||||
<script src="bower_components/underscore/underscore.js"></script>
|
||||
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
|
||||
<script src="scripts/profile.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -246,7 +246,7 @@ function addCategory(query, callback) {
|
||||
}
|
||||
}
|
||||
|
||||
function execQuery(query, callback) {
|
||||
function runQuery(query, callback) {
|
||||
sanitizeQuery(query);
|
||||
|
||||
var context = {
|
||||
@ -289,7 +289,7 @@ function execQuery(query, callback) {
|
||||
|
||||
module.exports = {
|
||||
loadDb: loadDb,
|
||||
execQuery: execQuery,
|
||||
runQuery: runQuery,
|
||||
getCategories: getCategories,
|
||||
addCategory: addCategory
|
||||
};
|
||||
|
@ -40,7 +40,7 @@ function main(staticFiles, port) {
|
||||
});
|
||||
|
||||
app.use('/query', function(req, res) {
|
||||
search.execQuery(req.query, function(results) {
|
||||
search.runQuery(req.query, function(results) {
|
||||
res.json(results);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user