环境变量支持搜索

This commit is contained in:
hanhh
2021-06-21 14:16:51 +08:00
parent 6c943ac97a
commit 49ab1ad93a
3 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export default (app: Router) => {
const logger: Logger = Container.get('logger');
try {
const envService = Container.get(EnvService);
const data = await envService.envs('', { position: -1 });
const data = await envService.envs(req.query.searchValue as string);
return res.send({ code: 200, data });
} catch (e) {
logger.error('🔥 error: %o', e);