60 lines
1.1 KiB
YAML
60 lines
1.1 KiB
YAML
name: bp_wb
|
|
version: 0.1.0
|
|
description: BOSA Plugin Website Builder - Visual drag-and-drop page builder for BOSA apps
|
|
author: BOSA Team
|
|
|
|
# Sidebar configuration for Super Admin
|
|
sidebar:
|
|
label: Theme Builder
|
|
url: /bp_wb/
|
|
icon: pencil-square
|
|
role: super_admin
|
|
position: after
|
|
after: themes
|
|
|
|
runtime:
|
|
type: nodejs
|
|
entry: server.js
|
|
|
|
routes:
|
|
# Editor routes
|
|
- path: /
|
|
method: GET
|
|
handler: serveEditor
|
|
- path: /editor
|
|
method: GET
|
|
handler: serveEditor
|
|
|
|
# Static assets route (for Vite build outputs)
|
|
- path: /assets/:filepath
|
|
method: GET
|
|
handler: serveAssets
|
|
|
|
# API routes for pages
|
|
- path: /api/pages
|
|
method: GET
|
|
handler: listPages
|
|
- path: /api/pages
|
|
method: POST
|
|
handler: createPage
|
|
- path: /api/pages/:id
|
|
method: GET
|
|
handler: getPage
|
|
- path: /api/pages/:id
|
|
method: PUT
|
|
handler: updatePage
|
|
- path: /api/pages/:id
|
|
method: DELETE
|
|
handler: deletePage
|
|
|
|
# Renderer route
|
|
- path: /preview/:id
|
|
method: GET
|
|
handler: previewPage
|
|
|
|
events:
|
|
publish:
|
|
- page.created
|
|
- page.updated
|
|
- page.deleted
|
|
|