feat(caprover): allow human to mark an app as successfully updated
This commit is contained in:
4
joe.ts
4
joe.ts
@@ -3,6 +3,7 @@ import applications from "./routes/applications";
|
||||
import applicationsUpdate from "./routes/applications.update";
|
||||
import Layout, { html } from "./ui/Layout";
|
||||
import DockerHub from "./services/DockerHub";
|
||||
import Human from "./services/Human";
|
||||
import FileEventStore from "./infrastructure/FileEventStore";
|
||||
import AppQueries from "./domain/AppQueries";
|
||||
import AppProjections from "./domain/AppProjections";
|
||||
@@ -25,6 +26,7 @@ const caprover = new Caprover(
|
||||
process.env.CAPTAIN_PASSWORD
|
||||
);
|
||||
const dockerHub = new DockerHub();
|
||||
const human = new Human(eventStore);
|
||||
|
||||
const server = Bun.serve({
|
||||
port: 3000,
|
||||
@@ -42,7 +44,7 @@ const server = Bun.serve({
|
||||
case "/applications":
|
||||
return applications(req, caprover, queries);
|
||||
case "/applications/update":
|
||||
return applicationsUpdate(req, caprover, dockerHub, queries);
|
||||
return applicationsUpdate(req, caprover, dockerHub, human, queries);
|
||||
default:
|
||||
return new Response("Not Found", { status: 404 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user