@hazae41/turbine 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,8 +78,10 @@ export class Server {
78
78
  return this.#upgrade(request);
79
79
  if (request.method === "OPTIONS")
80
80
  return new Response(null, { status: 204 });
81
+ if (request.method === "GET")
82
+ return new Response("Yes it works");
81
83
  if (request.method === "POST")
82
- return Response.json(await this.subserver.respond(await request.json()), { status: 200 });
84
+ return Response.json(await this.subserver.respond(await request.json()));
83
85
  return new Response(null, { status: 405 });
84
86
  }
85
87
  #upgrade(request) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@hazae41/turbine",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "description": "Bobine over HTTP and WebSocket",
6
6
  "repository": "github:hazae41/turbine",
7
7
  "author": "hazae41",