mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 00:07:53 +01:00
A few comments, further cleanup. A few TODOs handled.
This commit is contained in:
parent
dbb9931189
commit
c78725d7d5
47 changed files with 347 additions and 3664 deletions
|
|
@ -16,17 +16,15 @@ public class ModsController : WebApiController
|
|||
[Route( HttpVerbs.Get, "/mods" )]
|
||||
public object? GetMods()
|
||||
{
|
||||
// TODO
|
||||
return null;
|
||||
//return Penumbra.ModManager.Mods.Zip( Penumbra.CollectionManager.Current.ActualSettings ).Select( x => new
|
||||
//{
|
||||
// x.Second?.Enabled,
|
||||
// x.Second?.Priority,
|
||||
// x.First.BasePath.Name,
|
||||
// x.First.Name,
|
||||
// BasePath = x.First.BasePath.FullName,
|
||||
// Files = x.First.Resources.ModFiles.Select( fi => fi.FullName ),
|
||||
//} );
|
||||
return Penumbra.ModManager.Zip( Penumbra.CollectionManager.Current.ActualSettings ).Select( x => new
|
||||
{
|
||||
x.Second?.Enabled,
|
||||
x.Second?.Priority,
|
||||
FolderName = x.First.BasePath.Name,
|
||||
x.First.Name,
|
||||
BasePath = x.First.BasePath.FullName,
|
||||
Files = x.First.AllFiles,
|
||||
} );
|
||||
}
|
||||
|
||||
[Route( HttpVerbs.Post, "/mods" )]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue