import
This commit is contained in:
13
api/index.js
Normal file
13
api/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.get('/ping', (req,res) => {
|
||||
res.send("pong!");
|
||||
})
|
||||
|
||||
app.get('/hello', (req,res) => {
|
||||
res.send("hello!");
|
||||
})
|
||||
|
||||
app.listen(port, () => {console.log(`listening on ${port}`)})
|
||||
Reference in New Issue
Block a user