fix(ui): Dynamically generate path to config in warning message (#851)

This commit is contained in:
TheCatLady
2021-02-05 04:15:48 -05:00
committed by GitHub
parent e4f9b8a984
commit b531a642f6
6 changed files with 24 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ import personRoutes from './person';
import collectionRoutes from './collection';
import { getAppVersion, getCommitTag } from '../utils/appVersion';
import serviceRoutes from './service';
import { appDataStatus } from '../utils/appDataVolume';
import { appDataStatus, appDataPath } from '../utils/appDataVolume';
const router = Router();
@@ -31,6 +31,7 @@ router.get('/status', (req, res) => {
router.get('/status/appdata', (_req, res) => {
return res.status(200).json({
appData: appDataStatus(),
appDataPath: appDataPath(),
});
});