mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-11 07:38:45 +08:00
feat:去除获取资源信息需要cookie的限制
This commit is contained in:
@@ -10,7 +10,7 @@ export abstract class BaseCloudController extends BaseController {
|
|||||||
async getShareInfo(req: Request, res: Response): Promise<void> {
|
async getShareInfo(req: Request, res: Response): Promise<void> {
|
||||||
await this.handleRequest(req, res, async () => {
|
await this.handleRequest(req, res, async () => {
|
||||||
const { shareCode, receiveCode } = req.query;
|
const { shareCode, receiveCode } = req.query;
|
||||||
await this.cloudService.setCookie(req);
|
// await this.cloudService.setCookie(req);
|
||||||
return await this.cloudService.getShareInfo(shareCode as string, receiveCode as string);
|
return await this.cloudService.getShareInfo(shareCode as string, receiveCode as string);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user