Azure Node JS WebApp
Hi,
I have a simple Node Js Script like below. its just a simple Get Operation.
const express = require('express');
const app = express();
const port = process.env.PORT || 3000;
app.get('/', (req, res) => {
res.send('Welcome to my Nodemon API!');
});
app.listen(port, () => {
console.log(Running on port ${port}
);
});
I deployed it into a webapp of node 10 Runtime Stack. Now i want to access this get api. i dont have any front end pages. I just need to access my apis.
My Website Url looks like below https://XXX.azurewebsites.net.
How will i access my Get Operation with the above code?
Is it possible webapp only have the apis but not any front end pages?
7 answers
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more