public AntdOvermountStatusModule() { Get["/overmountstatus"] = x => { var model = new PageOvermountStatusModel { Components = MountManagement.GetAll() }; return(JsonConvert.SerializeObject(model)); }; }
private static bool CheckIsActive() => MountManagement.GetAll().FirstOrDefault(_ => _.RepoDirsPath == MntDir) != null;