1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Add missing status handler, add TODO

This commit is contained in:
Robert 2025-02-15 16:52:26 +01:00
parent 0a26319914
commit fcf00af130
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ internal class WebServerService : IWebServerService, IDisposable
LayoutBuilder serverLayout = Layout.Create() LayoutBuilder serverLayout = Layout.Create()
.Add(PluginsHandler) .Add(PluginsHandler)
.Add(new StatusHandler())
.Add(CorsPolicy.Permissive()); .Add(CorsPolicy.Permissive());
// Add registered controllers to the API module as services. // Add registered controllers to the API module as services.

View File

@ -28,6 +28,7 @@ public class RemoteController
public void BringToForeground(IRequest request) public void BringToForeground(IRequest request)
{ {
// Get the route from the request content stream // Get the route from the request content stream
// TODO: Use [FromBody] attribute instead once GenHTTP allows omitting null values
string? route = null; string? route = null;
if (request.Content != null) if (request.Content != null)
{ {