eth.link api

This commit is contained in:
Karol Wypchlo 2021-10-01 15:40:50 +02:00
parent 246b200d92
commit a59152bb56
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
import cors from "cors"; import cors from "cors";
import express, { Request, response, Response } from "express"; import express, { Request, Response } from "express";
import fs from "fs"; import fs from "fs";
import got from "got"; import got from "got";
import { extension as toExtension } from "mime-types"; import { extension as toExtension } from "mime-types";
import { Collection } from "mongodb"; import { Collection } from "mongodb";
import { API_HOSTNAME, API_PORT, MONGO_CONNECTIONSTRING, MONGO_DBNAME, UPLOAD_PATH, IPFS_INTERNAL_API } from "./consts"; import { API_HOSTNAME, API_PORT, MONGO_CONNECTIONSTRING, MONGO_DBNAME, UPLOAD_PATH } from "./consts";
import { MongoDB } from "./mongodb"; import { MongoDB } from "./mongodb";
import { IRecord } from "./types"; import { IRecord } from "./types";
import { contentType, download, extractArchive, isDirectory, uploadDirectory, uploadFile } from "./utils"; import { contentType, download, extractArchive, isDirectory, uploadDirectory, uploadFile } from "./utils";