Files
old-web/app/routes/index.js

48 lines
1.5 KiB
JavaScript
Raw Normal View History

2019-09-12 06:21:49 +02:00
"use strict";
const express = require("express");
const welcome = require("../controllers/welcome").getWelcome;
const {
getRealEstateTypes,
postRealEstateTypes
} = require("../controllers/realEstateTypes");
const {
getQueryReview,
postQueryReview
} = require("../controllers/queryReview");
const { getGoAgain } = require("../controllers/goAgain");
const { getLocation, postLocation } = require("../controllers/location");
const { getUnsubscribe } = require("../controllers/unsubscribe");
const { getRealEstates } = require("../controllers/realEstates");
const { getRedirect } = require("../controllers/redirect");
2019-10-11 15:37:47 +02:00
const { getFilters, postFilters } = require("../controllers/realEstateFilters");
2019-09-12 06:21:49 +02:00
const router = express.Router();
router.get("/", welcome);
router.get("/vrstanekretnine/:searchRequestId", getRealEstateTypes);
router.get("/vrstanekretnine", getRealEstateTypes);
router.post("/vrstanekretnine/:searchRequestId", postRealEstateTypes);
2019-09-12 06:21:49 +02:00
router.post("/vrstanekretnine", postRealEstateTypes);
router.get("/lokacija/:searchRequestId", getLocation);
router.post("/lokacija/:searchRequestId", postLocation);
2019-09-12 06:21:49 +02:00
2019-10-11 15:37:47 +02:00
router.get("/filteri/:searchRequestId", getFilters);
router.post("/filteri/:searchRequestId", postFilters);
2019-09-12 06:21:49 +02:00
router.get("/pregled/:searchRequestId", getQueryReview);
router.post("/pregled/:searchRequestId", postQueryReview);
2019-09-12 06:21:49 +02:00
router.get("/odjava/:searchRequestId", getUnsubscribe);
2019-09-12 06:21:49 +02:00
router.get("/ponovo", getGoAgain);
router.get("/nekretnine/:searchRequestId", getRealEstates);
2019-09-12 06:21:49 +02:00
router.get("/redirect/:id", getRedirect);
2019-09-12 06:21:49 +02:00
module.exports = router;