mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-29 12:03:26 +00:00
Use subpath imports for lambert-server, fix openapi.js
This commit is contained in:
1 parent
d84b8707ee
commit
2c1be0fa53
85 files changed
+83
-83
No files matched your search
+1
-1
@@ -18,7 +18,7 @@
|
||||
|
||||
import path from "node:path";
|
||||
import morgan from "morgan";
|
||||
import { Server, ServerOptions } from "lambert-server";
|
||||
import { Server, ServerOptions } from "lambert-server/Server";
|
||||
import { Attachment, Config, initDatabase, registerRoutes } from "@spacebar/util";
|
||||
import { CORS, BodyParser } from "@spacebar/api";
|
||||
import guildProfilesRoute from "./routes/guild-profiles";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import { Config, CloudAttachment, hasValidSignature, NewUrlUserSignatureData, Snowflake, UrlSignResult } from "@spacebar/util";
|
||||
import { Request, Response, Router } from "express";
|
||||
import imageSize from "image-size";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { multer } from "../util/multer";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { Router, Response, Request } from "express";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { cache } from "../util/cache";
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import { Router, Response, Request } from "express";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache } from "../util/cache";
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { Router, Response, Request } from "express";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { cache } from "../util/cache";
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
import { Request, Response, Router } from "express";
|
||||
import fs from "node:fs/promises";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { join } from "node:path";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { cache } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
import { Config } from "@spacebar/util";
|
||||
import crypto from "node:crypto";
|
||||
import { Request, Response, Router } from "express";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import { multer } from "../util/multer";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
@@ -20,7 +20,7 @@ import { Router, Response, Request } from "express";
|
||||
import { Config } from "@spacebar/util";
|
||||
import { storage } from "@spacebar/cdn";
|
||||
import { fileTypeFromBuffer } from "file-type";
|
||||
import { HTTPError } from "lambert-server";
|
||||
import { HTTPError } from "lambert-server/HTTPError";
|
||||
import crypto from "node:crypto";
|
||||
import { multer } from "../util/multer";
|
||||
import { cache, cacheNotFound } from "../util/cache";
|
||||
|
||||
Reference in new issue
Block a user