[mod] server
Christian Fraß

Christian Fraß commited on 2021-03-12 22:02:17
Zeige 2 geänderte Dateien mit 4 Einfügungen und 4 Löschungen.

... ...
@@ -32,7 +32,7 @@ async function main(args : Array<string>) : Promise<void>
32 32
 		}
33 33
 		case "run":
34 34
 		{
35
-			const server : lib_comm.class_server_common = new lib_comm.class_server_common
35
+			const server : lib_server.class_server = new lib_server.class_server
36 36
 			(
37 37
 				7777,
38 38
 				ns_server.query_http_raw
... ...
@@ -42,7 +42,7 @@ namespace ns_server
42 42
 			}
43 43
 			case lib_http.enum_method.post:
44 44
 			{
45
-				const data_in : any = lib_code.json_decode(http_request.body);
45
+				const data_in : any = lib_json.decode(http_request.body);
46 46
 				try
47 47
 				{
48 48
 					const data_out : any = await query(data_in);
... ...
@@ -55,7 +55,7 @@ namespace ns_server
55 55
 							"Access-Control-Allow-Headers": "Content-Type",
56 56
 							"Content-Type": "application/json",
57 57
 						},
58
-						"body": lib_code.json_encode(data_out),
58
+						"body": lib_json.encode(data_out),
59 59
 					};
60 60
 				}
61 61
 				catch (exception)
... ...
@@ -71,7 +71,7 @@ namespace ns_server
71 71
 							"Access-Control-Allow-Headers": "Content-Type",
72 72
 							"Content-Type": "application/json",
73 73
 						},
74
-						"body": lib_code.json_encode(data_out),
74
+						"body": lib_json.encode(data_out),
75 75
 					};
76 76
 				}
77 77
 				break;
78 78