mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 06:40:42 +00:00
29 lines
468 B
JavaScript
29 lines
468 B
JavaScript
/**
|
|
*
|
|
* Webhooks
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { Switch, Route, useRouteMatch } from 'react-router-dom';
|
|
|
|
import ListView from './ListView';
|
|
import EditView from './EditView';
|
|
|
|
function Webhooks() {
|
|
let { path } = useRouteMatch();
|
|
|
|
return (
|
|
<Switch>
|
|
<Route exact path={`${path}`}>
|
|
<ListView />
|
|
</Route>
|
|
<Route path={`${path}/:id`}>
|
|
Edit <EditView />
|
|
</Route>
|
|
</Switch>
|
|
);
|
|
}
|
|
|
|
export default Webhooks;
|