1
0
Fork 0
mirror of synced 2024-07-19 13:15:49 +12:00

Merge branch 'feature/plugin-management-ui' of github.com:Budibase/budibase into feature/plugin-management-ui

This commit is contained in:
Peter Clement 2022-09-05 10:29:12 +01:00
commit 7948783982

View file

@ -55,9 +55,11 @@ export async function upload(ctx: any) {
}
export async function create(ctx: any) {
const { type, source, name, url, headers, githubToken } = ctx.request.body
const { type, source, url, headers, githubToken } = ctx.request.body
let metadata
let directory
// Generating random name as a backup and needed for url
let name = "PLUGIN_" + Math.floor(100000 + Math.random() * 900000)
switch (source) {
case "npm":