@shun-js/aibaiban-server 0.3.6 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/sitemap.xml +1 -1
- package/package.json +2 -2
- package/server/service/SEOService.js +3 -3
- package/views/index.html +1 -1
package/assets/sitemap.xml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shun-js/aibaiban-server",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "aibaiban.com server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai aibaiban"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"access": "public",
|
|
42
42
|
"registry": "https://registry.npmjs.org/"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "de8f854b1e7ed731d4920fe8e1e5d50e9ee30f20"
|
|
45
45
|
}
|
|
@@ -10,7 +10,7 @@ const { readFile } = require('qiao-file');
|
|
|
10
10
|
* @param {*} res
|
|
11
11
|
*/
|
|
12
12
|
exports.robots = async (req, res) => {
|
|
13
|
-
const txtPath = path.resolve(__dirname, '
|
|
13
|
+
const txtPath = path.resolve(__dirname, '../../assets/robots.txt');
|
|
14
14
|
const txt = await readFile(txtPath);
|
|
15
15
|
res.send(txt);
|
|
16
16
|
};
|
|
@@ -21,7 +21,7 @@ exports.robots = async (req, res) => {
|
|
|
21
21
|
* @param {*} res
|
|
22
22
|
*/
|
|
23
23
|
exports.sitemap = async (req, res) => {
|
|
24
|
-
const sitemapPath = path.resolve(__dirname, '
|
|
24
|
+
const sitemapPath = path.resolve(__dirname, '../../assets/sitemap.xml');
|
|
25
25
|
const sitemap = await readFile(sitemapPath);
|
|
26
26
|
res.send(sitemap);
|
|
27
27
|
};
|
|
@@ -32,7 +32,7 @@ exports.sitemap = async (req, res) => {
|
|
|
32
32
|
* @param {*} res
|
|
33
33
|
*/
|
|
34
34
|
exports.bingIndexNow = async (req, res) => {
|
|
35
|
-
const txtPath = path.resolve(__dirname, '
|
|
35
|
+
const txtPath = path.resolve(__dirname, '../../assets/bing.txt');
|
|
36
36
|
const txt = await readFile(txtPath);
|
|
37
37
|
res.send(txt);
|
|
38
38
|
};
|
package/views/index.html
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<script
|
|
57
57
|
type="module"
|
|
58
58
|
crossorigin
|
|
59
|
-
src="https://static-small.vincentqiao.com/aibaiban/static/index-
|
|
59
|
+
src="https://static-small.vincentqiao.com/aibaiban/static/index-DHt0ui9Z.js"
|
|
60
60
|
></script>
|
|
61
61
|
<link rel="stylesheet" crossorigin href="https://static-small.vincentqiao.com/aibaiban/static/index-DbDPw9K7.css" />
|
|
62
62
|
</head>
|