change file names to CamelCase
This commit is contained in:
@@ -9,11 +9,11 @@ const realEstateTypes = [
|
||||
|
||||
const getRealEstateTypes = (req,res) => {
|
||||
const nextStep = req.query.nextStep;
|
||||
res.render('real_estate_type', {
|
||||
res.render('realEstateType', {
|
||||
nextStep,
|
||||
realEstateTypes: realEstateTypes
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const postRealEstateTypes = (req, res) => {
|
||||
let nextStep = req.query.nextStep;
|
||||
@@ -25,8 +25,7 @@ const postRealEstateTypes = (req, res) => {
|
||||
}).catch( (e) => {
|
||||
res.send(e);
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
getRealEstateTypes,
|
||||
@@ -1,3 +1,4 @@
|
||||
<!--suppress HtmlUnknownAnchorTarget -->
|
||||
<div class="row center-align">
|
||||
<h2>Koju nekretninu tražite?</h2>
|
||||
</div>
|
||||
4
index.js
4
index.js
@@ -1,5 +1,5 @@
|
||||
const welcome = require('./app/controllers/welcome').getWelcome;
|
||||
const { getRealEstateTypes, postRealEstateTypes} = require('./app/controllers/real_estate_types');
|
||||
const { getRealEstateTypes, postRealEstateTypes} = require('./app/controllers/realEstateTypes');
|
||||
const { getCity, postCity } = require('./app/controllers/city');
|
||||
const { getNeighborhood, postgNeighborhood } = require('./app/controllers/neighborhoods');
|
||||
|
||||
@@ -122,6 +122,6 @@ app.get('/mjesto/:request_id', getNeighborhood);
|
||||
app.post('/mjesto/:request_id', postgNeighborhood);
|
||||
|
||||
|
||||
app.use('/assets', express.static('./app/public'))
|
||||
app.use('/assets', express.static('./app/public'));
|
||||
|
||||
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
|
||||
|
||||
Reference in New Issue
Block a user