my config
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
import { createProxyMiddleware } from "http-proxy-middleware";
|
||||
|
||||
export default createProxyMiddleware({
|
||||
target: "http://10.10.0.13", // Ziel-URL des Proxys
|
||||
target: "http://192.168.10.58:3001",
|
||||
// target: "http://10.10.0.13", // Ziel-URL des Proxys
|
||||
//target: "http://192.168.10.187:3000", // Ziel-URL des Proxys
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
|
||||
@@ -14,7 +14,7 @@ export default function handler(req, res) {
|
||||
console.log("Empfangene Query-Parameter:", req.query); // Gibt alle empfangenen Query-Parameter aus
|
||||
|
||||
const connection = mysql.createConnection(dbConfig);
|
||||
const query = "SELECT * FROM poiTyp"; // Vereinfachte Abfrage zum Testen
|
||||
const query = "SELECT * FROM poityp"; // Vereinfachte Abfrage zum Testen
|
||||
|
||||
connection.query(query, (error, results) => {
|
||||
connection.end();
|
||||
|
||||
Reference in New Issue
Block a user