Add redraw route to http api

This commit is contained in:
Yuki 2022-03-20 16:16:27 +11:00
parent bf40c2a3cb
commit 6fa79c62c4
2 changed files with 37 additions and 1 deletions

View file

@ -166,7 +166,8 @@ public class Penumbra : IDalamudPlugin
.WithMode( HttpListenerMode.EmbedIO ) )
.WithCors( prefix )
.WithWebApi( "/api", m => m
.WithController( () => new ModsController( this ) ) );
.WithController( () => new ModsController( this ) )
.WithController( () => new RedrawController( this ) ) );
_webServer.StateChanged += ( _, e ) => PluginLog.Information( $"WebServer New State - {e.NewState}" );