"use strict"; const express = require("express"); const welcome = require("../controllers/welcome").getWelcome; const { getRealEstateTypes, postRealEstateTypes } = require("../controllers/realEstateTypes"); const { getSize, postSize } = require("../controllers/sizes"); const { getGardenSize, postGardenSize } = require("../controllers/gardenSizes"); const { getPrice, postPrice } = require("../controllers/prices"); const { getQueryReview, postQueryReview } = require("../controllers/queryReview"); const { getQuerySubmit, postQuerySubmit } = require("../controllers/querySubmit"); const { getGoAgain } = require("../controllers/goAgain"); const { getLocation, postLocation } = require("../controllers/location"); const { getUnsubscribe } = require("../controllers/unsubscribe"); const { getRealEstates } = require("../controllers/realEstates"); const { redirect } = require("../controllers/redirect"); const router = express.Router(); router.get("/", welcome); router.get("/vrstanekretnine/:searchRequestId", getRealEstateTypes); router.get("/vrstanekretnine", getRealEstateTypes); router.post("/vrstanekretnine/:searchRequestId", postRealEstateTypes); router.post("/vrstanekretnine", postRealEstateTypes); router.get("/lokacija/:searchRequestId", getLocation); router.post("/lokacija/:searchRequestId", postLocation); router.get("/povrsina/:searchRequestId", getSize); router.post("/povrsina/:searchRequestId", postSize); router.get("/okucnica/:searchRequestId", getGardenSize); router.post("/okucnica/:searchRequestId", postGardenSize); router.get("/cijena/:searchRequestId", getPrice); router.post("/cijena/:searchRequestId", postPrice); router.get("/pregled/:searchRequestId", getQueryReview); router.post("/pregled/:searchRequestId", postQueryReview); router.get("/posalji/:searchRequestId", getQuerySubmit); router.post("/posalji/:searchRequestId", postQuerySubmit); router.get("/odjava/:searchRequestId", getUnsubscribe); router.get("/ponovo", getGoAgain); router.get("/nekretnine/:searchRequestId", getRealEstates); router.get("/redirect/:id", redirect); module.exports = router;