fighting weird bug with branches
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public class UpdateLikes : UpdateRoute
|
||||
{
|
||||
public static void HandleRequest(HttpListenerRequest request, HttpListenerResponse response)
|
||||
{
|
||||
List<string> validParamNames = ["id"];
|
||||
|
||||
try
|
||||
{
|
||||
UpdateLikes(request, "post", validParamNames, true);
|
||||
SendSuccess(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendError(response, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user