blob: 4056bd30cfead2b174ead3eab6214115f1ab75e1 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
const routes = [
{
path: '/',
component: './Metrics',
},
{
path: '/metrics',
component: './Metrics',
},
{
path: '/routes/list',
component: './Route/List',
},
{
path: '/routes/create',
component: './Route/Create',
},
{
path: '/routes/:rid/edit',
component: './Route/Create',
},
{
path: '/routes/:rid/debug',
component: './Route/Debug',
},
{
path: '/routegroup/list',
component: './RouteGroup/List',
},
{
path: '/routegroup/create',
component: './RouteGroup/Create',
},
{
path: '/routegroup/:gid/edit',
component: './RouteGroup/Create',
},
{
path: '/ssl/:id/edit',
component: './SSL/Create',
},
{
path: '/ssl/list',
component: './SSL/List',
},
{
path: '/ssl/create',
component: './SSL/Create',
},
{
path: '/upstream/list',
component: './Upstream/List',
},
{
path: '/upstream/create',
component: './Upstream/Create',
},
{
path: '/upstream/:id/edit',
component: './Upstream/Create',
},
{
path: '/consumer/list',
component: './Consumer/List',
},
{
path: '/consumer/create',
component: './Consumer/Create',
},
{
path: '/consumer/:id/edit',
component: './Consumer/Create',
},
{
path: '/settings',
component: './Setting',
},
{
path: '/user/login',
component: './User/Login',
layout: false,
},
{
path: '/user/logout',
component: './User/Logout',
layout: false,
},
{
component: './404',
},
];
export default routes;