Skip to content

Commit 39dee7c

Browse files
FluxCapacitor2skkra0
authored andcommitted
Move API handler implementations to service directory (#6)
1 parent be9a029 commit 39dee7c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

backend/src/service/createApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { ConflictError, db } from "../db/index.ts";
22
import type { App } from "../db/models.ts";
33
import type { components } from "../generated/openapi.ts";
44
import {
5-
getRandomTag,
65
MAX_GROUPNAME_LEN,
76
RANDOM_TAG_LEN,
7+
getRandomTag,
88
} from "../lib/cluster/resources.ts";
99
import { OrgNotFoundError, ValidationError } from "./common/errors.ts";
1010
import {

backend/src/service/updateApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import type {
88
} from "../db/models.ts";
99
import type { components } from "../generated/openapi.ts";
1010
import {
11-
getRandomTag,
1211
MAX_GROUPNAME_LEN,
1312
RANDOM_TAG_LEN,
13+
getRandomTag,
1414
} from "../lib/cluster/resources.ts";
1515
import {
1616
AppNotFoundError,

frontend/src/components/config/workload/git/ImportRepoDialog.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
import { api } from "@/lib/api";
2-
import { FormContext } from "@/pages/create-app/CreateAppView";
3-
import { Info, Library, Loader, X } from "lucide-react";
4-
import { useContext, useState, type Dispatch } from "react";
5-
import { toast } from "sonner";
61
import { Button } from "@/components/ui/button";
72
import { Checkbox } from "@/components/ui/checkbox";
83
import {
@@ -22,7 +17,12 @@ import {
2217
SelectTrigger,
2318
SelectValue,
2419
} from "@/components/ui/select";
20+
import { api } from "@/lib/api";
2521
import type { CommonFormFields } from "@/lib/form.types";
22+
import { FormContext } from "@/pages/create-app/CreateAppView";
23+
import { Info, Library, Loader, X } from "lucide-react";
24+
import { useContext, useState, type Dispatch } from "react";
25+
import { toast } from "sonner";
2626

2727
export const ImportRepoDialog = ({
2828
orgId,

0 commit comments

Comments
 (0)