mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
完善拉取私有仓库
This commit is contained in:
1 parent
1695b8c0fe
commit
7caabe9063
6 files changed
+96
-34
No files matched your search
@@ -13,6 +13,7 @@ import UserService from '../services/user';
|
||||
import handler from 'serve-handler';
|
||||
import * as Sentry from '@sentry/node';
|
||||
import { EnvModel } from '../data/env';
|
||||
import { errors } from 'celebrate';
|
||||
|
||||
export default ({ app }: { app: Application }) => {
|
||||
app.enable('trust proxy');
|
||||
@@ -134,6 +135,7 @@ export default ({ app }: { app: Application }) => {
|
||||
next(err);
|
||||
});
|
||||
|
||||
app.use(errors());
|
||||
app.use(Sentry.Handlers.errorHandler());
|
||||
|
||||
app.use(
|
||||
|
||||
Reference in new issue
Block a user