Skip to content

Commit

Permalink
feat: add
Browse files Browse the repository at this point in the history
  • Loading branch information
junming su authored and junming su committed Oct 30, 2020
1 parent f6040c0 commit ccc48e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const pathUrl = ENV ? '../' : '../../../'
function startRekitStudio(port: any) {
return new Promise((resolve: () => void, reject: any) => {
const app = initRekit(port)
// 添加代码
app.post(
'/skyApi/addComponent',
(
Expand Down Expand Up @@ -68,7 +69,7 @@ function startRekitStudio(port: any) {
resolve()
},
)

// 获取文件和文件夹
app.post(
'/skyApi/getFiles',
(
Expand Down Expand Up @@ -138,6 +139,7 @@ function startRekitStudio(port: any) {
res.send(success(callbackArray))
},
)
//获取模板
app.post(
'/skyApi/getTemplates',
(
Expand Down Expand Up @@ -172,6 +174,7 @@ function startRekitStudio(port: any) {
res.send(success(list))
},
)
//删除
app.post(
'/skyApi/delete',
(
Expand Down

0 comments on commit ccc48e1

Please sign in to comment.