mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-15 22:48:05 +08:00
Refine project structure
This commit is contained in:
@@ -3,9 +3,9 @@ import {
|
||||
GIST_BACKUP_KEY,
|
||||
GIST_BACKUP_FILE_NAME,
|
||||
} from './constants';
|
||||
import { ENV } from '../utils/open-api';
|
||||
import express from '../utils/express';
|
||||
import { IP_API } from '../utils/geo';
|
||||
import { ENV } from '../vendor/open-api';
|
||||
import express from '../vendor/express';
|
||||
import IP_API from '../utils/ip-api';
|
||||
import Gist from '../utils/gist';
|
||||
import $ from '../core/app';
|
||||
|
||||
@@ -15,7 +15,7 @@ import registerArtifactRoutes from './artifacts';
|
||||
import registerSettingRoutes from './settings';
|
||||
|
||||
export default function serve() {
|
||||
const $app = express();
|
||||
const $app = express({ substore: $ });
|
||||
|
||||
// register routes
|
||||
registerCollectionRoutes($app);
|
||||
|
||||
Reference in New Issue
Block a user