Skip to content
Snippets Groups Projects
Commit baf76943 authored by Esko Ikkala's avatar Esko Ikkala
Browse files

Hipla backend listening on port 3001 for now

parent 675a7b8f
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ import {
GET_GEOJSON_FAILED
} from '../actions';
const hiplaApiUrl = 'http://localhost:3000/api/';
const hiplaApiUrl = 'http://localhost:3001/';
const getSuggestionsEpic = (action$, store) => {
const searchUrl = hiplaApiUrl + 'suggest';
......
......@@ -17,7 +17,7 @@ app.use(function(req, res, next) {
next();
});
app.get('/api/suggest', (req, res) => {
app.get('/suggest', (req, res) => {
// https://softwareengineering.stackexchange.com/questions/233164/how-do-searches-fit-into-a-restful-interface
// example request: http://localhost:3000/search?dataset=warsa_karelian_places&dataset=pnr&q=viip
const queryDatasets = _.castArray(req.query.dataset);
......@@ -34,7 +34,7 @@ app.get('/api/suggest', (req, res) => {
});
});
app.get('/api/search', (req, res) => {
app.get('/search', (req, res) => {
// https://softwareengineering.stackexchange.com/questions/233164/how-do-searches-fit-into-a-restful-interface
// example request: http://localhost:3000/search?dataset=warsa_karelian_places&dataset=pnr&q=viip
const queryDatasets = _.castArray(req.query.dataset);
......@@ -51,7 +51,7 @@ app.get('/api/search', (req, res) => {
});
});
app.get('/api/wfs', (req, res) => {
app.get('/wfs', (req, res) => {
//
// Taustakartan rajat:
//
......
......@@ -9,8 +9,8 @@ module.exports = merge(common, {
hot: true,
port: 8080,
open: true,
proxy: {
'/api': 'http://localhost:3000'
}
// proxy: {
// '/api': 'http://localhost:3000'
// }
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment