fighting weird bug with branches
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public class DeleteComment : DeleteRoute
|
||||
{
|
||||
public static void HandleRequest(HttpListenerRequest request, HttpListenerResponse response)
|
||||
{
|
||||
try
|
||||
{
|
||||
DeleteFromDB(request, "comment", ["id"], true);
|
||||
SendSuccess(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendError(response, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user