14 lines
337 B
TypeScript
14 lines
337 B
TypeScript
import { apps } from "app/src/webapp"
|
|
import { connectSneaker } from "app/src/sneaker"
|
|
|
|
export default async function (app: string, subdomain = "") {
|
|
if (!app) {
|
|
return `usage: share <app> [subdomain]`
|
|
}
|
|
|
|
if (!apps().includes(app)) {
|
|
return { error: `${app} not found` }
|
|
}
|
|
|
|
return await connectSneaker(app, subdomain)
|
|
} |