partey_workadventure/back/src/Server/sifrr.server.ts

20 lines
411 B
TypeScript
Raw Normal View History

2021-06-24 10:09:10 +02:00
import { parse } from "query-string";
import { HttpRequest } from "uWebSockets.js";
import App from "./server/app";
import SSLApp from "./server/sslapp";
import * as types from "./server/types";
2020-09-28 18:52:54 +02:00
const getQuery = (req: HttpRequest) => {
2021-06-24 10:09:10 +02:00
return parse(req.getQuery());
2020-09-28 18:52:54 +02:00
};
2020-09-29 10:57:14 +02:00
export { App, SSLApp, getQuery };
2021-06-24 10:09:10 +02:00
export * from "./server/types";
2020-09-28 18:52:54 +02:00
export default {
2021-06-24 10:09:10 +02:00
App,
SSLApp,
getQuery,
...types,
2020-09-28 18:52:54 +02:00
};