WiP Changed welcome and input form for ad type

This commit is contained in:
Naida Vatric
2020-02-03 13:11:40 +01:00
parent 824db4fbc3
commit d45441f4be
12 changed files with 264 additions and 23 deletions

View File

@@ -7,6 +7,10 @@ const {
getRealEstateTypes,
postRealEstateTypes
} = require("../controllers/realEstateTypes");
const {
getPublishTypes,
postPublishTypes
} = require("../controllers/publishRealEstateTypes");
const {
getQueryReview,
postQueryReview
@@ -28,6 +32,11 @@ router.get("/vrstanekretnine", getRealEstateTypes);
router.post("/vrstanekretnine/:searchRequestId", postRealEstateTypes);
router.post("/vrstanekretnine", postRealEstateTypes);
router.get("/objavinekretninu/:realEstateId", getPublishTypes);
router.get("/objavinekretninu", getPublishTypes);
router.post("/objavinekretninu/:realEstateId", postPublishTypes);
router.post("/objavinekretninu", postPublishTypes);
router.get("/lokacija/:searchRequestId", getLocation);
router.post("/lokacija/:searchRequestId", postLocation);