Skip to content

Commit

Permalink
chore : 불필요한 cors 및 get요청 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellol77 committed Jul 27, 2024
1 parent 883b063 commit eb9c619
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions backend/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const port = process.env.PORT || 3000;
const app = express();
const server = createServer(app);

app.use(cors());

const dbConfig = {
host: process.env.DB_HOST,
Expand All @@ -23,11 +22,6 @@ const dbConfig = {

let connection;

app.get("/", (req, res) => {
console.log(process.env.PORT);
res.send("Hello World!");
});

async function connectDB() {
try {
connection = await mysql2.createConnection(dbConfig);
Expand Down

0 comments on commit eb9c619

Please sign in to comment.