mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-07 11:07:19 +00:00
refactor: convert /backend to ESM
This commit is contained in:
parent
31d74c05aa
commit
5772e27cda
766 changed files with 3473 additions and 3500 deletions
|
@ -2,13 +2,13 @@ import cors from "cors";
|
|||
import express from "express";
|
||||
import multer from "multer";
|
||||
import { TokenError } from "passport-oauth2";
|
||||
import { env } from "../env";
|
||||
import { initArchives } from "./archives";
|
||||
import { initAuth } from "./auth";
|
||||
import { initDocs } from "./docs";
|
||||
import { initGuildsAPI } from "./guilds/index";
|
||||
import { clientError, error, notFound } from "./responses";
|
||||
import { startBackgroundTasks } from "./tasks";
|
||||
import { env } from "../env.js";
|
||||
import { initArchives } from "./archives.js";
|
||||
import { initAuth } from "./auth.js";
|
||||
import { initDocs } from "./docs.js";
|
||||
import { initGuildsAPI } from "./guilds/index.js";
|
||||
import { clientError, error, notFound } from "./responses.js";
|
||||
import { startBackgroundTasks } from "./tasks.js";
|
||||
|
||||
const apiPathPrefix = env.API_PATH_PREFIX || (env.NODE_ENV === "development" ? "/api" : "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue