• This project
    • Loading...
  • Sign in

이태화 / khu-notice-project

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • khu-notice-project
  • backend
  • routes
  • api
  • fetchNoticeList.js
  • 이태화's avatar
    db fixed · bc32c2ca
    bc32c2ca
    이태화 authored 2020-11-15 10:00:00 +0900
fetchNoticeList.js 399 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
const mysql = require("mysql");


var noticeList = async function(req,res){
  var connection = mysql.createConnection({
    host: "34.69.247.0",
    user: 'root',
    password: 'kcss3711',
    database: 'khuNotice'
  });
  connection.connect();

  connection.query(req.body.sql,function(err,rows){
    if(err){
        console.log(err);
    }
    res.send(rows);
  })
}

module.exports = noticeList;