fighting weird bug with branches
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using System.Net;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public class UpdateProfile : UpdateRoute
|
||||
{
|
||||
public static void HandleRequest(HttpListenerRequest request, HttpListenerResponse response)
|
||||
{
|
||||
List<string> validParamNames =
|
||||
[
|
||||
"f_name",
|
||||
"l_name",
|
||||
"company",
|
||||
"website",
|
||||
"location",
|
||||
"github",
|
||||
"status",
|
||||
"bio",
|
||||
"skills",
|
||||
"twitter",
|
||||
"facebook",
|
||||
"youtube",
|
||||
"linkedin",
|
||||
"instagram",
|
||||
];
|
||||
|
||||
try
|
||||
{
|
||||
UpdateDb(request, "profile", validParamNames, false);
|
||||
SendSuccess(response);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SendError(response, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user