POIs visible with checkbox
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// pages/api/readPoiTyp.js
|
||||
import mysql from 'mysql';
|
||||
import mysql from "mysql";
|
||||
|
||||
const pool = mysql.createPool({
|
||||
connectionLimit: 10,
|
||||
//connectionLimit: 10,
|
||||
host: process.env.DB_HOST,
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASSWORD,
|
||||
@@ -13,7 +13,7 @@ const pool = mysql.createPool({
|
||||
export default function handler(req, res) {
|
||||
if (req.method === "GET") {
|
||||
const query = "SELECT * FROM poityp";
|
||||
|
||||
|
||||
pool.query(query, (error, results) => {
|
||||
if (error) {
|
||||
console.error("Fehler beim Abfragen der Datenbank:", error);
|
||||
|
||||
Reference in New Issue
Block a user