Przeglądaj źródła

Fix proxy and README

Eric Zhang 4 lat temu
rodzic
commit
8d3d9c6604
2 zmienionych plików z 4 dodań i 5 usunięć
  1. 3 3
      README.md
  2. 1 2
      src/setupProxy.js

+ 3 - 3
README.md

@@ -1,9 +1,9 @@
 # Rustpad
 
 **Rustpad** is an _efficient_ and _minimal_ open-source collaborative text
-editor using the operational transformation (OT) algorithm. It has a client-side
-web interface that communicates by WebSocket with a central server storing
-in-memory data structures.
+editor based on the operational transformation (OT) algorithm. Rustpad provides
+an online real-time code editor that communicates via WebSocket with a central
+server storing in-memory data structures.
 
 The backend is written in Rust, using
 [Warp](https://github.com/seanmonstar/warp) and the open source

+ 1 - 2
src/setupProxy.js

@@ -2,8 +2,7 @@ const createProxyMiddleware = require("http-proxy-middleware");
 
 module.exports = function (app) {
   app.use(
-    "/api",
-    createProxyMiddleware({
+    createProxyMiddleware("/api", {
       target: "http://localhost:3030",
       changeOrigin: true,
       secure: false,