More cleanup
This commit is contained in:
parent
d5fa5b845f
commit
9d314cd995
@ -28,17 +28,21 @@ import {
|
|||||||
initEvent,
|
initEvent,
|
||||||
registerRoutes,
|
registerRoutes,
|
||||||
} from "@spacebar/util";
|
} from "@spacebar/util";
|
||||||
|
import {
|
||||||
|
Authentication,
|
||||||
|
CORS,
|
||||||
|
ImageProxy,
|
||||||
|
BodyParser,
|
||||||
|
ErrorHandler,
|
||||||
|
initRateLimits,
|
||||||
|
initTranslation,
|
||||||
|
} from "./middlewares";
|
||||||
import { Request, Response, Router } from "express";
|
import { Request, Response, Router } from "express";
|
||||||
import { Server, ServerOptions } from "lambert-server";
|
import { Server, ServerOptions } from "lambert-server";
|
||||||
import "missing-native-js-functions";
|
import "missing-native-js-functions";
|
||||||
import morgan from "morgan";
|
import morgan from "morgan";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { red } from "picocolors";
|
import { red } from "picocolors";
|
||||||
import { Authentication, CORS, ImageProxy } from "./middlewares/";
|
|
||||||
import { BodyParser } from "./middlewares/BodyParser";
|
|
||||||
import { ErrorHandler } from "./middlewares/ErrorHandler";
|
|
||||||
import { initRateLimits } from "./middlewares/RateLimit";
|
|
||||||
import { initTranslation } from "./middlewares/Translation";
|
|
||||||
import { initInstance } from "./util/handlers/Instance";
|
import { initInstance } from "./util/handlers/Instance";
|
||||||
|
|
||||||
const PUBLIC_ASSETS_FOLDER = path.join(
|
const PUBLIC_ASSETS_FOLDER = path.join(
|
||||||
|
|||||||
@ -20,5 +20,6 @@ export * from "./Authentication";
|
|||||||
export * from "./BodyParser";
|
export * from "./BodyParser";
|
||||||
export * from "./CORS";
|
export * from "./CORS";
|
||||||
export * from "./ErrorHandler";
|
export * from "./ErrorHandler";
|
||||||
export * from "./RateLimit";
|
|
||||||
export * from "./ImageProxy";
|
export * from "./ImageProxy";
|
||||||
|
export * from "./RateLimit";
|
||||||
|
export * from "./Translation";
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { KittyLogo } from "./KittyLogo";
|
import { KittyLogo } from ".";
|
||||||
import { blueBright } from "picocolors";
|
import { blueBright } from "picocolors";
|
||||||
|
|
||||||
export class Logo {
|
export class Logo {
|
||||||
|
|||||||
@ -30,6 +30,8 @@ export * from "./FieldError";
|
|||||||
export * from "./Intents";
|
export * from "./Intents";
|
||||||
export * from "./InvisibleCharacters";
|
export * from "./InvisibleCharacters";
|
||||||
export * from "./JSON";
|
export * from "./JSON";
|
||||||
|
export * from "./KittyLogo";
|
||||||
|
export * from "./Logo";
|
||||||
export * from "./MessageFlags";
|
export * from "./MessageFlags";
|
||||||
export * from "./Permissions";
|
export * from "./Permissions";
|
||||||
export * from "./RabbitMQ";
|
export * from "./RabbitMQ";
|
||||||
@ -44,5 +46,4 @@ export * from "./WebAuthn";
|
|||||||
export * from "./Url";
|
export * from "./Url";
|
||||||
export * from "./Gifs";
|
export * from "./Gifs";
|
||||||
export * from "./Application";
|
export * from "./Application";
|
||||||
export * from "./Logo";
|
|
||||||
export * from "./NameValidation";
|
export * from "./NameValidation";
|
||||||
|
|||||||
Reference in New Issue
Block a user