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