aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-08-02 17:26:29 +0200
committerHampusM <hampus@hampusmat.com>2021-08-02 17:26:29 +0200
commit904bd1731447796cf1a2bd992c89f889f2a6263a (patch)
treec746534149722905792e8a1b0059568ed9cc1c7c /packages/server/src/routes/api
parent8feb65c5467cc3ad48270183113a121c4a9f86ca (diff)
Renamed the shared types package to api
Diffstat (limited to 'packages/server/src/routes/api')
-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();