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:
parent
0a26319914
commit
fcf00af130
@ -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.
|
||||||
|
|||||||
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user