Renamed deploy app to instsall
This commit is contained in:
@@ -5,7 +5,7 @@ import { getNodes } from "./node";
|
||||
import axios from "axios";
|
||||
import { Env, EnvVariable, ImageApp } from "@/lib/types";
|
||||
|
||||
export async function deployNewApp(name: string, repo: string, nodeId: string) {
|
||||
export async function installApp(name: string, repo: string, nodeId: string) {
|
||||
if (await verifySession()) {
|
||||
throw new Error("Unauthorized");
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ export async function getApplications(): Promise<ImageApp[]> {
|
||||
return apps;
|
||||
}
|
||||
|
||||
export async function deployNewApp(name: string, repo: string, nodeId: string) {
|
||||
export async function installApp(name: string, repo: string, nodeId: string) {
|
||||
// Create app ID
|
||||
const appId = `app_${randomUUID()}`;
|
||||
const appDir = path.join(DATA_DIR, appId);
|
||||
|
||||
Reference in New Issue
Block a user