Last active
August 16, 2021 13:59
-
-
Save headStyleColorRed/d3729a0133cd84fe1109a2814d0d8604 to your computer and use it in GitHub Desktop.
MEDIUM Missing configuration telegram part
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express") | |
const app = express(); | |
const puerto = 9001; | |
const Cors = require("cors") | |
// Middlewares | |
app.use(Cors()); | |
app.use(express.json()); | |
app.use(express.urlencoded({ extended: false })) | |
// Open port | |
app.listen(puerto, () => console.log("Listening on port " + puerto)) | |
// ++++++++++++++++ HTTP METHODS +++++++++++++++++++ // | |
app.get("/", (req, res) => { | |
res.send("Server is up and running! :D") | |
}) | |
module.exports = app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment