changes
This commit is contained in:
parent
486b50bf87
commit
d439989944
12
app.js
12
app.js
|
|
@ -1,14 +1,14 @@
|
||||||
const http = require('http');
|
const http = require("http");
|
||||||
|
|
||||||
const PORT = 8080;
|
const PORT = 8080;
|
||||||
|
|
||||||
const server = http.createServer((req, res) => {
|
const server = http.createServer((req, res) => {
|
||||||
if (req.method === 'GET' && req.url === '/') {
|
if (req.method === "GET" && req.url === "/") {
|
||||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
res.writeHead(200, { "Content-Type": "text/plain" });
|
||||||
res.end('7thhh updateee Hello World');
|
res.end("7thhh updateee Hello World");
|
||||||
} else {
|
} else {
|
||||||
res.writeHead(404, { 'Content-Type': 'text/plain' });
|
res.writeHead(404, { "Content-Type": "text/plain" });
|
||||||
res.end('Not Found');
|
res.end("Not Found");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
app: "anujbugtest"
|
app: "helloworldpage"
|
||||||
serverlessId: "ce200692-ad45-4edd-b63b-f052f7ce51bb"
|
serverlessId: "ce200692-ad45-4edd-b63b-f052f7ce51bb"
|
||||||
region: "asia-south1"
|
region: "asia-south1"
|
||||||
handler: "handler.handler"
|
handler: "handler.handler"
|
||||||
language: "nodejs/20"
|
language: "nodejs/20"
|
||||||
|
|
||||||
serverlessConfig:
|
serverlessConfig:
|
||||||
Name: "anujbugtest"
|
Name: "helloworldpage"
|
||||||
Description: ""
|
Description: ""
|
||||||
Runtime: "git"
|
Runtime: "git"
|
||||||
# Environment variables for your serverless function
|
# Environment variables for your serverless function
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user