I'm kind of new in react and trying to develop sample app based on reactjs + expressjs + nodejs referred by https://github.com/lmammino/judo-heroes but problem is when I'm trying to create webhook api for 3rd party application, react router showed me as 404 page.
server.js
import routes from './routes';
...
...
var webhook = require('./routes/webhook');
app.use('webhook', webhook);
and routes.js
'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import NotFoundPage from './components/NotFoundPage';
const routes = (
<Route path="/" component={Layout}>
<IndexRoute component={IndexPage}/>
<Route path="*" component={NotFoundPage}/>
</Route>
);
export default routes;
and when I called "localhost:3333/webhook", it gone to execute <Route path="*" component={NotFoundPage}/> as showed 404 error page.
Please help me how can I export webhook as individual api not related to react router?