43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
const authRoutes = require("./auth")
|
|
const pageRoutes = require("./pages")
|
|
const screenRoutes = require("./screen")
|
|
const userRoutes = require("./user")
|
|
const applicationRoutes = require("./application")
|
|
const tableRoutes = require("./table")
|
|
const rowRoutes = require("./row")
|
|
const viewRoutes = require("./view")
|
|
const staticRoutes = require("./static")
|
|
const componentRoutes = require("./component")
|
|
const automationRoutes = require("./automation")
|
|
const webhookRoutes = require("./webhook")
|
|
const accesslevelRoutes = require("./accesslevel")
|
|
const deployRoutes = require("./deploy")
|
|
const apiKeysRoutes = require("./apikeys")
|
|
const templatesRoutes = require("./templates")
|
|
const analyticsRoutes = require("./analytics")
|
|
const routingRoutes = require("./routing")
|
|
|
|
exports.mainRoutes = [
|
|
deployRoutes,
|
|
pageRoutes,
|
|
screenRoutes,
|
|
userRoutes,
|
|
applicationRoutes,
|
|
automationRoutes,
|
|
viewRoutes,
|
|
componentRoutes,
|
|
accesslevelRoutes,
|
|
apiKeysRoutes,
|
|
templatesRoutes,
|
|
analyticsRoutes,
|
|
webhookRoutes,
|
|
routingRoutes,
|
|
// these need to be handled last as they still use /api/:tableId
|
|
// this could be breaking as koa may recognise other routes as this
|
|
tableRoutes,
|
|
rowRoutes,
|
|
]
|
|
|
|
exports.authRoutes = authRoutes
|
|
exports.staticRoutes = staticRoutes
|