feat: 所有的类型检查
This commit is contained in:
1 parent
19888d52dc
commit
df824d77ae
50 files changed
+477
-94
No files matched your search
@@ -2,9 +2,9 @@ import { NextFunction, Request, Response } from 'express';
|
||||
|
||||
import { getInitialWebUiToken } from '@/napcat-webui-backend/index';
|
||||
|
||||
import { AuthHelper } from '@/napcat-webui-backend/helper/SignToken';
|
||||
import { sendError } from '@/napcat-webui-backend/utils/response';
|
||||
import type { WebUiCredentialJson } from '@/napcat-webui-backend/types';
|
||||
import { AuthHelper } from '@/napcat-webui-backend/src/helper/SignToken';
|
||||
import { sendError } from '@/napcat-webui-backend/src/utils/response';
|
||||
import type { WebUiCredentialJson } from '@/napcat-webui-backend/src/types';
|
||||
|
||||
// 鉴权中间件
|
||||
export async function auth (req: Request, res: Response, next: NextFunction) {
|
||||
|
||||
Reference in new issue
Block a user