Skip to content

Commit

Permalink
search endpoint #82
Browse files Browse the repository at this point in the history
  • Loading branch information
ElhamFadel committed Nov 4, 2021
1 parent c8cf50a commit 16d675c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions server/controllers/estates/filterEstate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = () => {

};
2 changes: 2 additions & 0 deletions server/controllers/estates/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const editEstate = require('./editEstate');
const deleteEstate = require('./deleteEstate');
const filterEstate = require('./filterEstate');

module.exports = {
editEstate,
deleteEstate,
filterEstate,
};
4 changes: 2 additions & 2 deletions server/controllers/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { userEstateshandler, login } = require('./users');
const getAllUsers = require('./users/getAllUsers');
const { editEstate, deleteEstate } = require('./estates');
const { editEstate, deleteEstate, filterEstate } = require('./estates');
const logout = require('./logout');

module.exports = {
getAllUsers, userEstateshandler, logout, login, deleteEstate, editEstate,
getAllUsers, userEstateshandler, logout, login, deleteEstate, editEstate, filterEstate,
};
3 changes: 3 additions & 0 deletions server/database/quieres/filterEstate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const connection = require('../config/connection');

module.exports = () => connection.query();
2 changes: 2 additions & 0 deletions server/database/quieres/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const checkAdminQuery = require('./checkAdmin');
const checkEmailQuery = require('./checkEmailQuery');
const editEstateQuery = require('./editEstatesQuery');
const deleteEstateQuery = require('./deleteEstateQuery');
const filterEstate = require('./filterEstate');

module.exports = {
getAllUsersQuery,
Expand All @@ -12,4 +13,5 @@ module.exports = {
checkEmailQuery,
editEstateQuery,
deleteEstateQuery,
filterEstate,
};

0 comments on commit 16d675c

Please sign in to comment.