Skip to content

Commit 8bb0b84

Browse files
Shorten imports
1 parent e8b0b58 commit 8bb0b84

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+300
-299
lines changed

assets/openapi.json

Lines changed: 87 additions & 87 deletions
Large diffs are not rendered by default.

assets/schemas.json

Lines changed: 89 additions & 89 deletions
Large diffs are not rendered by default.

src/api/routes/channels/#channel_id/messages/#message_id/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
import { Request, Response, Router } from "express";
3535
import { HTTPError } from "lambert-server";
3636
import multer from "multer";
37-
import { handleMessage, postHandleMessage, route } from "../../../../../util";
37+
import { handleMessage, postHandleMessage, route } from "@spacebar/api";
3838
import { MessageCreateAttachment, MessageCreateCloudAttachment, MessageCreateSchema, MessageEditSchema, ChannelType } from "@spacebar/schemas";
3939

4040
const router = Router({ mergeParams: true });

src/api/routes/connections/#connection_name/authorize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import { route } from "@spacebar/api";
2020
import { Request, Response, Router } from "express";
21-
import { ConnectionStore, FieldErrors } from "../../../../util";
21+
import { ConnectionStore, FieldErrors } from "@spacebar/util";
2222

2323
const router = Router({ mergeParams: true });
2424

src/api/routes/guilds/#guild_id/widget.png.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Request, Response, Router } from "express";
2424
import fs from "fs";
2525
import { HTTPError } from "lambert-server";
2626
import path from "path";
27-
import { storage } from "../../../../cdn/util/Storage";
27+
import { storage } from "@spacebar/cdn";
2828

2929
const router: Router = Router({ mergeParams: true });
3030

src/cdn/routes/app-assets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import { Router, Response, Request } from "express";
2020
import { Config, Snowflake } from "@spacebar/util";
21-
import { storage } from "../util/Storage";
21+
import { storage } from "@spacebar/cdn";
2222
import { fileTypeFromBuffer } from "file-type";
2323
import { HTTPError } from "lambert-server";
2424
import crypto from "crypto";

src/cdn/routes/app-icons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import { Router, Response, Request } from "express";
2020
import { Config, Snowflake } from "@spacebar/util";
21-
import { storage } from "../util/Storage";
21+
import { storage } from "@spacebar/cdn";
2222
import { fileTypeFromBuffer } from "file-type";
2323
import { HTTPError } from "lambert-server";
2424
import crypto from "crypto";

src/cdn/routes/attachments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { Request, Response, Router } from "express";
2121
import imageSize from "image-size";
2222
import { HTTPError } from "lambert-server";
2323
import { multer } from "../util/multer";
24-
import { storage } from "../util/Storage";
25-
import { CloudAttachment } from "../../util/entities/CloudAttachment";
24+
import { storage } from "@spacebar/cdn";
25+
import { CloudAttachment } from "@spacebar/util";
2626
import { fileTypeFromBuffer } from "file-type";
2727
import { cache } from "../util/cache";
2828

src/cdn/routes/avatar-decoration-presets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
import { Router, Response, Request } from "express";
20-
import { storage } from "../util/Storage";
20+
import { storage } from "@spacebar/cdn";
2121
import { HTTPError } from "lambert-server";
2222
import { fileTypeFromBuffer } from "file-type";
2323
import { cache } from "../util/cache";

src/cdn/routes/avatars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import { Router, Response, Request } from "express";
2020
import { Config, Snowflake } from "@spacebar/util";
21-
import { storage } from "../util/Storage";
21+
import { storage } from "@spacebar/cdn";
2222
import { fileTypeFromBuffer } from "file-type";
2323
import { HTTPError } from "lambert-server";
2424
import crypto from "crypto";

0 commit comments

Comments
 (0)