Vo Hoang Minh commited on
Commit
3387658
·
1 Parent(s): dcc5c0a
Files changed (1) hide show
  1. src/server.mjs +3 -3
src/server.mjs CHANGED
@@ -22,7 +22,7 @@ app.get("/api/ping", (c) => {
22
  });
23
 
24
  // API endpoint để khởi tạo trình duyệt
25
- app.post("/api/browser/start", async (c) => {
26
  try {
27
  // Tạo profile mới
28
 
@@ -50,7 +50,7 @@ app.post("/api/browser/start", async (c) => {
50
  });
51
 
52
  // API endpoint để điều hướng trình duyệt
53
- app.post("/api/browser/navigate", async (c) => {
54
  try {
55
  const { profileId, url } = await c.req.json();
56
 
@@ -98,7 +98,7 @@ app.post("/api/browser/navigate", async (c) => {
98
  });
99
 
100
  // API endpoint để đóng trình duyệt
101
- app.post("/api/browser/stop", async (c) => {
102
  try {
103
  const { profileId } = await c.req.json();
104
 
 
22
  });
23
 
24
  // API endpoint để khởi tạo trình duyệt
25
+ app.get("/api/start", async (c) => {
26
  try {
27
  // Tạo profile mới
28
 
 
50
  });
51
 
52
  // API endpoint để điều hướng trình duyệt
53
+ app.post("/api/navigate", async (c) => {
54
  try {
55
  const { profileId, url } = await c.req.json();
56
 
 
98
  });
99
 
100
  // API endpoint để đóng trình duyệt
101
+ app.post("/api/stop", async (c) => {
102
  try {
103
  const { profileId } = await c.req.json();
104