aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/routes')
-rw-r--r--packages/server/src/routes/api/v1/index.ts2
-rw-r--r--packages/server/src/routes/api/v1/repo/branches.ts2
-rw-r--r--packages/server/src/routes/api/v1/repo/index.ts2
-rw-r--r--packages/server/src/routes/api/v1/repo/log.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/routes/api/v1/index.ts b/packages/server/src/routes/api/v1/index.ts
index 62ae5d7..9cc20c2 100644
--- a/packages/server/src/routes/api/v1/index.ts
+++ b/packages/server/src/routes/api/v1/index.ts
@@ -3,7 +3,7 @@ import { Repository } from "../../../git/repository";
import { Route } from "../../../types/fastify";
import repo from "./repo";
import { verifyRepoName } from "../util";
-import { Info as APIInfo, RepositorySummary as APIRepositorySummary, Repository as APIRepository } from "shared_types";
+import { Info as APIInfo, RepositorySummary as APIRepositorySummary, Repository as APIRepository } from "api";
import { BaseError } from "../../../git/error";
function setHandlers(fastify: FastifyInstance): void {
diff --git a/packages/server/src/routes/api/v1/repo/branches.ts b/packages/server/src/routes/api/v1/repo/branches.ts
index 10ac736..c36463d 100644
--- a/packages/server/src/routes/api/v1/repo/branches.ts
+++ b/packages/server/src/routes/api/v1/repo/branches.ts
@@ -1,7 +1,7 @@
import { FastifyInstance, FastifyPluginOptions } from "fastify";
import { Branch } from "../../../../git/branch";
import { Route } from "../../../../types/fastify";
-import { BranchSummary as APIBranchSummary, Branch as APIBranch } from "shared_types";
+import { BranchSummary as APIBranchSummary, Branch as APIBranch } from "api";
export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, done: (err?: Error) => void): void {
fastify.route<Route>({
diff --git a/packages/server/src/routes/api/v1/repo/index.ts b/packages/server/src/routes/api/v1/repo/index.ts
index 395c108..1759a29 100644
--- a/packages/server/src/routes/api/v1/repo/index.ts
+++ b/packages/server/src/routes/api/v1/repo/index.ts
@@ -8,7 +8,7 @@ import { basename } from "path";
import branches from "./branches";
import log from "./log";
import { verifyRepoName } from "../../util";
-import { Tree as APITree, Tag as APITag, TreeEntry as APITreeEntry } from "shared_types";
+import { Tree as APITree, Tag as APITag, TreeEntry as APITreeEntry } from "api";
import { BaseError } from "../../../../git/error";
import { Tree } from "../../../../git/tree";
diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts
index b05487b..76706b3 100644
--- a/packages/server/src/routes/api/v1/repo/log.ts
+++ b/packages/server/src/routes/api/v1/repo/log.ts
@@ -3,7 +3,7 @@ import { Commit } from "../../../../git/commit";
import { Patch } from "../../../../git/patch";
import { Route } from "../../../../types/fastify";
import { verifySHA } from "../../util";
-import { LogCommit as APILogCommit, Patch as APIPatch, Commit as APICommit } from "shared_types";
+import { LogCommit as APILogCommit, Patch as APIPatch, Commit as APICommit } from "api";
async function commitMap(commit: Commit) {
const stats = await commit.stats();