branch: remove image upload test server

This commit is contained in:
KUN1007 2023-09-08 15:55:29 +08:00
parent 890175e86d
commit 1c3f1dc56a
108 changed files with 13 additions and 3925 deletions

View file

@ -25,6 +25,7 @@
"pinia": "^2.1.6",
"pinia-plugin-persistedstate": "^3.2.0",
"quill-blot-formatter": "^1.0.5",
"quill-image-uploader": "^1.3.0",
"vue": "^3.3.4",
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.4"

View file

@ -1,4 +1,4 @@
lockfileVersion: '6.0'
lockfileVersion: '6.1'
settings:
autoInstallPeers: true
@ -26,6 +26,9 @@ dependencies:
quill-blot-formatter:
specifier: ^1.0.5
version: 1.0.5(quill@1.3.7)
quill-image-uploader:
specifier: ^1.3.0
version: 1.3.0(quill@1.3.7)
vue:
specifier: ^3.3.4
version: 3.3.4
@ -1647,6 +1650,14 @@ packages:
lodash.isequal: 4.5.0
dev: false
/quill-image-uploader@1.3.0(quill@1.3.7):
resolution: {integrity: sha512-vO43GEn93rGThje/MlotkQE9OV5nOKBZ4oKhn71L/EjrM/J2P/8iDDVd9GEwlsGsbskeJqPLopsSQ4HlVVIn6A==}
peerDependencies:
quill: ^1.3.7
dependencies:
quill: 1.3.7
dev: false
/quill@1.3.7:
resolution: {integrity: sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==}
dependencies:

5
server/.gitignore vendored
View file

@ -1,5 +0,0 @@
/node_modules
upload-files/
upload-files-tmp/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 990 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 949 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 647 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 725 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,002 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1,832 +0,0 @@
[
{
"name": "汗",
"left": 287,
"top": 425,
"width": 12,
"height": 14,
"visible": 1,
"layer_id": 2961,
"group_layer_id": 2931
},
{
"name": "追真剣",
"left": 234,
"top": 383,
"width": 76,
"height": 27,
"visible": 1,
"layer_id": 3022,
"group_layer_id": 2923
},
{
"name": "笑1",
"left": 232,
"top": 380,
"width": 78,
"height": 29,
"visible": 1,
"layer_id": 2842,
"group_layer_id": 2923
},
{
"name": "笑2",
"left": 235,
"top": 385,
"width": 76,
"height": 32,
"visible": 1,
"layer_id": 2845,
"group_layer_id": 2923
},
{
"name": "怒1",
"left": 239,
"top": 382,
"width": 63,
"height": 28,
"visible": 1,
"layer_id": 2848,
"group_layer_id": 2923
},
{
"name": "怒2",
"left": 240,
"top": 382,
"width": 60,
"height": 26,
"visible": 1,
"layer_id": 2864,
"group_layer_id": 2923
},
{
"name": "悲1",
"left": 237,
"top": 386,
"width": 70,
"height": 28,
"visible": 1,
"layer_id": 2855,
"group_layer_id": 2923
},
{
"name": "悲2",
"left": 238,
"top": 391,
"width": 66,
"height": 28,
"visible": 1,
"layer_id": 2859,
"group_layer_id": 2923
},
{
"name": "泣1",
"left": 243,
"top": 388,
"width": 58,
"height": 30,
"visible": 1,
"layer_id": 2865,
"group_layer_id": 2923
},
{
"name": "泣2",
"left": 240,
"top": 386,
"width": 65,
"height": 31,
"visible": 1,
"layer_id": 2870,
"group_layer_id": 2923
},
{
"name": "驚1",
"left": 232,
"top": 379,
"width": 78,
"height": 31,
"visible": 1,
"layer_id": 2877,
"group_layer_id": 2923
},
{
"name": "驚2",
"left": 232,
"top": 379,
"width": 78,
"height": 33,
"visible": 1,
"layer_id": 2882,
"group_layer_id": 2923
},
{
"name": "照1",
"left": 234,
"top": 382,
"width": 77,
"height": 31,
"visible": 1,
"layer_id": 2887,
"group_layer_id": 2923
},
{
"name": "照2",
"left": 239,
"top": 385,
"width": 70,
"height": 31,
"visible": 1,
"layer_id": 2893,
"group_layer_id": 2923
},
{
"name": "えっへん",
"left": 235,
"top": 384,
"width": 72,
"height": 25,
"visible": 1,
"layer_id": 2899,
"group_layer_id": 2923
},
{
"name": "ギャグ笑",
"left": 234,
"top": 383,
"width": 76,
"height": 33,
"visible": 1,
"layer_id": 2905,
"group_layer_id": 2923
},
{
"name": "ギャグ怒",
"left": 239,
"top": 384,
"width": 61,
"height": 29,
"visible": 1,
"layer_id": 2910,
"group_layer_id": 2923
},
{
"name": "ギャグ泣",
"left": 239,
"top": 389,
"width": 63,
"height": 26,
"visible": 1,
"layer_id": 2915,
"group_layer_id": 2923
},
{
"name": "ギャグ驚",
"left": 235,
"top": 383,
"width": 66,
"height": 23,
"visible": 1,
"layer_id": 2918,
"group_layer_id": 2923
},
{
"name": "追真剣",
"left": 238,
"top": 392,
"width": 78,
"height": 41,
"visible": 0,
"layer_id": 3020,
"group_layer_id": 2925
},
{
"name": "笑1",
"left": 238,
"top": 390,
"width": 78,
"height": 43,
"visible": 0,
"layer_id": 2843,
"group_layer_id": 2925
},
{
"name": "笑2",
"left": 244,
"top": 395,
"width": 69,
"height": 37,
"visible": 0,
"layer_id": 2846,
"group_layer_id": 2925
},
{
"name": "怒1",
"left": 238,
"top": 391,
"width": 78,
"height": 42,
"visible": 0,
"layer_id": 2850,
"group_layer_id": 2925
},
{
"name": "怒2",
"left": 238,
"top": 391,
"width": 78,
"height": 42,
"visible": 0,
"layer_id": 2853,
"group_layer_id": 2925
},
{
"name": "悲1",
"left": 238,
"top": 392,
"width": 78,
"height": 41,
"visible": 0,
"layer_id": 2856,
"group_layer_id": 2925
},
{
"name": "悲2",
"left": 240,
"top": 396,
"width": 75,
"height": 37,
"visible": 0,
"layer_id": 2861,
"group_layer_id": 2925
},
{
"name": "泣1",
"left": 243,
"top": 396,
"width": 71,
"height": 37,
"visible": 1,
"layer_id": 3025,
"group_layer_id": 2925
},
{
"name": "泣2",
"left": 238,
"top": 394,
"width": 78,
"height": 60,
"visible": 0,
"layer_id": 3024,
"group_layer_id": 2925
},
{
"name": "驚1",
"left": 238,
"top": 390,
"width": 78,
"height": 43,
"visible": 0,
"layer_id": 2880,
"group_layer_id": 2925
},
{
"name": "驚2",
"left": 238,
"top": 390,
"width": 78,
"height": 43,
"visible": 0,
"layer_id": 2885,
"group_layer_id": 2925
},
{
"name": "照1",
"left": 238,
"top": 392,
"width": 78,
"height": 41,
"visible": 0,
"layer_id": 2891,
"group_layer_id": 2925
},
{
"name": "照2",
"left": 244,
"top": 395,
"width": 69,
"height": 37,
"visible": 0,
"layer_id": 2896,
"group_layer_id": 2925
},
{
"name": "えっへん",
"left": 244,
"top": 396,
"width": 68,
"height": 38,
"visible": 0,
"layer_id": 2902,
"group_layer_id": 2925
},
{
"name": "ギャグ笑",
"left": 244,
"top": 395,
"width": 69,
"height": 37,
"visible": 0,
"layer_id": 2908,
"group_layer_id": 2925
},
{
"name": "ギャグ怒",
"left": 244,
"top": 401,
"width": 66,
"height": 33,
"visible": 0,
"layer_id": 2913,
"group_layer_id": 2925
},
{
"name": "ギャグ泣",
"left": 244,
"top": 405,
"width": 66,
"height": 47,
"visible": 0,
"layer_id": 2916,
"group_layer_id": 2925
},
{
"name": "ギャグ驚",
"left": 248,
"top": 395,
"width": 57,
"height": 37,
"visible": 0,
"layer_id": 2920,
"group_layer_id": 2925
},
{
"name": "追開け",
"left": 270,
"top": 430,
"width": 19,
"height": 16,
"visible": 1,
"layer_id": 2980,
"group_layer_id": 2927
},
{
"name": "追閉じ",
"left": 271,
"top": 430,
"width": 18,
"height": 14,
"visible": 0,
"layer_id": 2969,
"group_layer_id": 2927
},
{
"name": "追真剣",
"left": 273,
"top": 433,
"width": 12,
"height": 13,
"visible": 0,
"layer_id": 3023,
"group_layer_id": 2927
},
{
"name": "笑1",
"left": 269,
"top": 429,
"width": 21,
"height": 18,
"visible": 0,
"layer_id": 2844,
"group_layer_id": 2927
},
{
"name": "笑2",
"left": 268,
"top": 428,
"width": 24,
"height": 22,
"visible": 0,
"layer_id": 2847,
"group_layer_id": 2927
},
{
"name": "怒1",
"left": 272,
"top": 433,
"width": 15,
"height": 12,
"visible": 0,
"layer_id": 2851,
"group_layer_id": 2927
},
{
"name": "怒2",
"left": 268,
"top": 428,
"width": 25,
"height": 23,
"visible": 0,
"layer_id": 2854,
"group_layer_id": 2927
},
{
"name": "悲1",
"left": 272,
"top": 434,
"width": 14,
"height": 11,
"visible": 0,
"layer_id": 2857,
"group_layer_id": 2927
},
{
"name": "悲2",
"left": 272,
"top": 435,
"width": 15,
"height": 12,
"visible": 0,
"layer_id": 2862,
"group_layer_id": 2927
},
{
"name": "泣1",
"left": 270,
"top": 431,
"width": 21,
"height": 17,
"visible": 0,
"layer_id": 2869,
"group_layer_id": 2927
},
{
"name": "泣2",
"left": 270,
"top": 433,
"width": 22,
"height": 13,
"visible": 0,
"layer_id": 2876,
"group_layer_id": 2927
},
{
"name": "驚1",
"left": 272,
"top": 432,
"width": 14,
"height": 16,
"visible": 0,
"layer_id": 2881,
"group_layer_id": 2927
},
{
"name": "驚2",
"left": 268,
"top": 427,
"width": 26,
"height": 25,
"visible": 0,
"layer_id": 2886,
"group_layer_id": 2927
},
{
"name": "照1",
"left": 269,
"top": 431,
"width": 20,
"height": 15,
"visible": 0,
"layer_id": 2892,
"group_layer_id": 2927
},
{
"name": "照2",
"left": 268,
"top": 430,
"width": 23,
"height": 19,
"visible": 0,
"layer_id": 2897,
"group_layer_id": 2927
},
{
"name": "えっへん",
"left": 269,
"top": 429,
"width": 22,
"height": 20,
"visible": 0,
"layer_id": 2903,
"group_layer_id": 2927
},
{
"name": "ギャグ笑",
"left": 267,
"top": 427,
"width": 26,
"height": 24,
"visible": 0,
"layer_id": 2909,
"group_layer_id": 2927
},
{
"name": "ギャグ怒",
"left": 270,
"top": 430,
"width": 20,
"height": 16,
"visible": 0,
"layer_id": 2914,
"group_layer_id": 2927
},
{
"name": "ギャグ泣",
"left": 270,
"top": 434,
"width": 19,
"height": 11,
"visible": 0,
"layer_id": 2917,
"group_layer_id": 2927
},
{
"name": "ギャグ驚",
"left": 267,
"top": 427,
"width": 25,
"height": 24,
"visible": 0,
"layer_id": 2921,
"group_layer_id": 2927
},
{
"name": "G頬",
"left": 249,
"top": 415,
"width": 59,
"height": 28,
"visible": 0,
"layer_id": 813,
"group_layer_id": 2314
},
{
"name": "頬1",
"left": 246,
"top": 410,
"width": 65,
"height": 35,
"visible": 0,
"layer_id": 2369,
"group_layer_id": 2314
},
{
"name": "頬2",
"left": 245,
"top": 410,
"width": 66,
"height": 35,
"visible": 0,
"layer_id": 2364,
"group_layer_id": 2314
},
{
"name": "頬3",
"left": 245,
"top": 408,
"width": 66,
"height": 38,
"visible": 0,
"layer_id": 2360,
"group_layer_id": 2314
},
{
"name": "頬4",
"left": 242,
"top": 406,
"width": 69,
"height": 44,
"visible": 1,
"layer_id": 2356,
"group_layer_id": 2314
},
{
"name": "頬5",
"left": 245,
"top": 410,
"width": 66,
"height": 36,
"visible": 0,
"layer_id": 2352,
"group_layer_id": 2314
},
{
"name": "斜め1",
"left": 148,
"top": 323,
"width": 309,
"height": 600,
"visible": 1,
"layer_id": 2346,
"group_layer_id": 2086
},
{
"name": "斜め2",
"left": 148,
"top": 323,
"width": 309,
"height": 600,
"visible": 0,
"layer_id": 2345,
"group_layer_id": 2086
},
{
"name": "斜め1",
"left": 147,
"top": 323,
"width": 313,
"height": 600,
"visible": 1,
"layer_id": 2934,
"group_layer_id": 2090
},
{
"name": "斜め2",
"left": 147,
"top": 323,
"width": 313,
"height": 600,
"visible": 1,
"layer_id": 2933,
"group_layer_id": 2090
},
{
"name": "斜め1",
"left": 137,
"top": 323,
"width": 367,
"height": 602,
"visible": 1,
"layer_id": 2340,
"group_layer_id": 2094
},
{
"name": "斜め2",
"left": 137,
"top": 323,
"width": 367,
"height": 602,
"visible": 1,
"layer_id": 2339,
"group_layer_id": 2094
},
{
"name": "斜め1",
"left": 148,
"top": 323,
"width": 294,
"height": 599,
"visible": 0,
"layer_id": 2338,
"group_layer_id": 2098
},
{
"name": "斜め2",
"left": 148,
"top": 323,
"width": 290,
"height": 599,
"visible": 1,
"layer_id": 2337,
"group_layer_id": 2098
},
{
"name": "斜め1",
"left": 149,
"top": 323,
"width": 293,
"height": 593,
"visible": 1,
"layer_id": 2335,
"group_layer_id": 2103
},
{
"name": "斜め2",
"left": 149,
"top": 323,
"width": 242,
"height": 593,
"visible": 0,
"layer_id": 2336,
"group_layer_id": 2103
},
{
"name": "汗",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2931,
"group_layer_id": 974
},
{
"name": "眉",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2923,
"group_layer_id": 974
},
{
"name": "目",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 1,
"layer_id": 2925,
"group_layer_id": 974
},
{
"name": "口",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2927,
"group_layer_id": 974
},
{
"name": "頬",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2314,
"group_layer_id": 975
},
{
"name": "喫茶店服",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2086,
"group_layer_id": 975
},
{
"name": "パジャマ",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2090,
"group_layer_id": 975
},
{
"name": "私服2",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2094,
"group_layer_id": 975
},
{
"name": "私服1",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 1,
"layer_id": 2098,
"group_layer_id": 975
},
{
"name": "裸",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"visible": 0,
"layer_id": 2103,
"group_layer_id": 975
}
]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

View file

@ -1,43 +0,0 @@
const express = require('express')
const path = require('path')
const cors = require('cors')
const bodyParser = require('body-parser')
const app = express()
const staticPath = path.join(__dirname, '.')
// 使用cors中间件来允许跨域请求
app.use(cors())
app.use(bodyParser.json())
app.use(express.static(staticPath))
const port = 10008 // 端口号
// 用户路由
const userRoutes = require('./src/routes/user')
// 话题路由
const topicRoutes = require('./src/routes/topic')
// 登录路由
const loginRoutes = require('./src/routes/login')
// 注册路由
const registerRoutes = require('./src/routes/register')
// 上传图片路由
const uploadImagesRoutes = require('./src/routes/upload-image')
app.use('/kungalgamer', userRoutes)
app.use('/topic', topicRoutes)
app.use('/login', loginRoutes)
app.use('/register', registerRoutes)
app.use('/upload', uploadImagesRoutes)
app.use((err, req, res, next) => {
console.error(err.stack)
res.status(500).json({ success: false, error: 'Internal Server Error' })
})
app.listen(port, '127.0.0.1', () => {
console.log(`Server is running on http://127.0.0.1:${port}`)
})

View file

@ -1,20 +0,0 @@
{
"name": "kungalgame-express-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"formidable": "^2.1.1",
"multer": "1.4.5-lts.1"
}
}

Some files were not shown because too many files have changed in this diff Show more