Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions api/getInternalLinks/function.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"bindings": [
{
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
]
},
{
"type": "http",
"direction": "out",
"name": "res"
}
]
}
30 changes: 30 additions & 0 deletions api/getInternalLinks/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const fs = require('fs').promises;
const path = require('path');

module.exports = async function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');

const name = (req.query.name || (req.body && req.body.name));
const origin = req.headers.origin;
const responseMessage = name
? "Hello, " + name + ". This HTTP triggered function executed successfully."
: "This HTTP triggered function executed successfully. Pass a name in the query string or in the request body for a personalized response.";
// const filePath = path.join(__dirname, `/data/${name}.json`);

// Read the contents of the JSON file
// const fileContent = await fs.readFile(filePath, 'utf8');

// Parse the JSON content
const jsonData = "hello";

context.res = {
// status: 200, /* Defaults to 200 */

headers: {
'Access-Control-Allow-Origin': '*', // Or specify specific origin(s)
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization'
},
body: responseMessage
};
}
15 changes: 2 additions & 13 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes
File renamed without changes
15 changes: 15 additions & 0 deletions app/public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@
<lastmod>2024-02-16T16:20:02+01:00</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.kashitaxi.in/blogs/VaranasiItinary</loc>
<lastmod>2024-03-23T07:57:00+00:00</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.kashitaxi.in/blogs/varanasi-ayodhya-allahabad-tour-package</loc>
<lastmod>2024-03-23T07:57:00+00:00</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.kashitaxi.in/blogs/best-tour-operators-in-varanasi</loc>
<lastmod>2024-03-23T07:57:00+00:00</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.kashitaxi.in/about</loc>
<lastmod>2024-02-16T16:20:02+01:00</lastmod>
Expand Down
1 change: 1 addition & 0 deletions app/src/components/navbar/data/BlogOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "path": "/blogs/Gaya", "title": "Gaya" },
{ "path": "/blogs/Sarnath", "title": "Sarnath" },
{ "path": "/blogs/Durgamandir", "title": "Durga Mata Mandir" },
{ "path": "/blogs/VaranasiSightseeing", "title": "Varanasi Sightseeing" },
{ "path": "/blogs/VaranasiItinary", "title": "Varanasi Itinary" },
{ "path": "/blogs/varanasi-ayodhya-allahabad-tour-package", "title": "Varanasi Ayodhya Allahabad Tour Package" },
{ "path": "/blogs/best-tour-operators-in-varanasi", "title": "Tour Operators" }
Expand Down