functional
This commit is contained in:
@@ -18,6 +18,9 @@ namespace Server
|
||||
listener.Prefixes.Add("http://localhost:5000/api/getuser/");
|
||||
listener.Prefixes.Add("http://localhost:5000/api/reset/");
|
||||
listener.Prefixes.Add("http://localhost:5000/api/createp/");
|
||||
listener.Prefixes.Add("http://localhost:5000/api/register/");
|
||||
listener.Prefixes.Add("http://localhost:5000/api/login/");
|
||||
listener.Prefixes.Add("http://localhost:5000/api/createlog/");
|
||||
|
||||
// listen
|
||||
listener.Start();
|
||||
@@ -61,6 +64,16 @@ namespace Server
|
||||
case "/api/createp":
|
||||
CreateProcedure.run(conn, request, response);
|
||||
break;
|
||||
case "/api/register":
|
||||
Register.run(conn, request, response);
|
||||
break;
|
||||
case "/api/login":
|
||||
Console.WriteLine("111");
|
||||
Login.run(conn, request, response);
|
||||
break;
|
||||
case "/api/createlog":
|
||||
CreateLog.run(conn, request, response);
|
||||
break;
|
||||
default:
|
||||
response.StatusCode = 404;
|
||||
string errorMessage = "Not Found";
|
||||
|
||||
Reference in New Issue
Block a user