|
|
@ -38,6 +38,11 @@ router |
|
|
// TODO: for now this builder endpoint is not authorized/secured, will need to be
|
|
|
// TODO: for now this builder endpoint is not authorized/secured, will need to be
|
|
|
.get("/builder/:file*", controller.serveBuilder) |
|
|
.get("/builder/:file*", controller.serveBuilder) |
|
|
.post("/api/attachments/process", authorized(BUILDER), controller.uploadFile) |
|
|
.post("/api/attachments/process", authorized(BUILDER), controller.uploadFile) |
|
|
|
|
|
.post( |
|
|
|
|
|
"/api/attachments/delete", |
|
|
|
|
|
authorized(BUILDER), |
|
|
|
|
|
controller.deleteObjects |
|
|
|
|
|
) |
|
|
.post("/api/beta/:feature", controller.toggleBetaUiFeature) |
|
|
.post("/api/beta/:feature", controller.toggleBetaUiFeature) |
|
|
.post( |
|
|
.post( |
|
|
"/api/attachments/:tableId/upload", |
|
|
"/api/attachments/:tableId/upload", |
|
|
@ -45,6 +50,12 @@ router |
|
|
authorized(PermissionTypes.TABLE, PermissionLevels.WRITE), |
|
|
authorized(PermissionTypes.TABLE, PermissionLevels.WRITE), |
|
|
controller.uploadFile |
|
|
controller.uploadFile |
|
|
) |
|
|
) |
|
|
|
|
|
.post( |
|
|
|
|
|
"/api/attachments/:tableId/delete", |
|
|
|
|
|
paramResource("tableId"), |
|
|
|
|
|
authorized(PermissionTypes.TABLE, PermissionLevels.WRITE), |
|
|
|
|
|
controller.deleteObjects |
|
|
|
|
|
) |
|
|
.get("/:appId/:path*", controller.serveApp) |
|
|
.get("/:appId/:path*", controller.serveApp) |
|
|
.get("/app/:appUrl/:path*", controller.serveApp) |
|
|
.get("/app/:appUrl/:path*", controller.serveApp) |
|
|
.post( |
|
|
.post( |
|
|
|