mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
import path from 'path'
|
|
|
|
export const routes = [
|
|
{
|
|
name: 'builder-page',
|
|
path: '/builder/:builderId/page/:pageId',
|
|
file: path.resolve(__dirname, 'pages/pageEditor.vue'),
|
|
},
|
|
{
|
|
name: 'builder-health-check',
|
|
path: '/_health',
|
|
file: path.resolve(__dirname, '../core/pages/_health.vue'),
|
|
meta: { publishedBuilderRoute: true, previewBuilderRoute: true },
|
|
},
|
|
{
|
|
name: 'application-builder-preview',
|
|
path: '/builder/preview/:builderId/:pathMatch(.*)*',
|
|
file: path.resolve(__dirname, 'pages/publicPage.vue'),
|
|
meta: {
|
|
previewBuilderRoute: true,
|
|
middleware: ['exchangePreviewToken', 'userSourceAuthProviderCallback'],
|
|
builderPageMode: 'preview',
|
|
},
|
|
},
|
|
{
|
|
name: 'application-builder-published',
|
|
path: '/builder/published/:builderId/:pathMatch(.*)*',
|
|
file: path.resolve(__dirname, 'pages/publicPage.vue'),
|
|
meta: { middleware: ['userSourceAuthProviderCallback'] },
|
|
},
|
|
{
|
|
name: 'application-builder-page',
|
|
path: '/:pathMatch(.*)*',
|
|
file: path.resolve(__dirname, 'pages/publicPage.vue'),
|
|
// If publishedBuilderRoute is true, then that route will only be used on a
|
|
// different subdomain.
|
|
meta: {
|
|
publishedBuilderRoute: true,
|
|
middleware: ['userSourceAuthProviderCallback'],
|
|
},
|
|
},
|
|
]
|