File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import fetch from "node-fetch";
2
2
const siteMapUrl = "https://blog.boot.dev/sitemap.xml" ;
3
3
const googleEndpoint = `http://www.google.com/ping?sitemap=${ siteMapUrl } ` ;
4
4
const yandexEndpoint = `https://webmaster.yandex.ru/ping?sitemap=${ siteMapUrl } ` ;
5
- const bingEndpoint = `http://www.bing.com/webmaster/ping.aspx?siteMap=${ siteMapUrl } ` ;
6
5
7
6
module . exports . handler = async ( ) => {
8
7
const resp = await fetch ( googleEndpoint ) ;
@@ -11,7 +10,5 @@ module.exports.handler = async () => {
11
10
const resp2 = await fetch ( yandexEndpoint ) ;
12
11
console . log ( "Yandex status code:" , resp2 . status ) ;
13
12
14
- const resp3 = await fetch ( bingEndpoint ) ;
15
- console . log ( "Bing status code:" , resp3 . status ) ;
16
13
return { statusCode : 200 , body : "" } ;
17
14
} ;
You can’t perform that action at this time.
0 commit comments