add mail type and validation
This commit is contained in:
parent
2e3d0a755c
commit
ce9f621b8b
11 changed files with 193 additions and 19 deletions
|
@ -165,9 +165,9 @@ export async function getApplicationFavicon(req: Request, res: Response): Promis
|
|||
"Cross-Origin-Resource-Policy": "cross-origin",
|
||||
"Cross-Origin-Embedder-Policy": "credentialless",
|
||||
"Timing-Allow-Origin": "*",
|
||||
"Content-Type": "image/x-icon",
|
||||
});
|
||||
|
||||
res.setHeader("Content-Type", "image/x-icon");
|
||||
res.send(buffer);
|
||||
}
|
||||
|
||||
|
@ -178,8 +178,8 @@ export async function getApplicationFavicon(req: Request, res: Response): Promis
|
|||
* @returns {Promise<*>}
|
||||
*/
|
||||
export async function getApplicationIcon(req: Request, res: Response): Promise<any> {
|
||||
const width = parseInt((req.query.width as string) ?? "");
|
||||
const height = parseInt((req.query.height as string) ?? "");
|
||||
const width = parseInt((req.query.width as string) ?? "512");
|
||||
const height = parseInt((req.query.height as string) ?? "512");
|
||||
|
||||
let icon = FileSystemHelper.readAssetFile("icon.png", true);
|
||||
let setLogo = SettingHelper.getSetting("club.icon");
|
||||
|
@ -200,8 +200,8 @@ export async function getApplicationIcon(req: Request, res: Response): Promise<a
|
|||
"Cross-Origin-Resource-Policy": "cross-origin",
|
||||
"Cross-Origin-Embedder-Policy": "credentialless",
|
||||
"Timing-Allow-Origin": "*",
|
||||
"Content-Type": "image/png",
|
||||
});
|
||||
|
||||
res.setHeader("Content-Type", "image/png");
|
||||
res.send(image);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue