Kaynağa Gözat

Added basic express app.js, and created app_v1.js file in routes

Luiserebii 2 yıl önce
ebeveyn
işleme
2f15614486
İmzalayan: Luiserebii <luis@serebii.io> GPG Key ID: 58A745E0A5422230
5 değiştirilmiş dosya ile 423 ekleme ve 0 silme
  1. 22
    0
      app.js
  2. 392
    0
      package-lock.json
  3. 2
    0
      package.json
  4. 7
    0
      routes/api_v1.js
  5. BIN
      src/.math.js.swp

+ 22
- 0
app.js Dosyayı Görüntüle

@@ -0,0 +1,22 @@
1
+const express = require("express");
2
+const api = require("./routes/api_v1");
3
+
4
+var app = express();
5
+
6
+app.use("/v1", api);
7
+
8
+app.get("/", function(req, res, next){
9
+   res.end("Hello, and welcome to the MathFun server!");
10
+   next();
11
+});
12
+
13
+app.get("/help", function(req, res){
14
+   res.end("Need help? Please see https://github.com/Luiserebii/MathFun-Server for the source!")
15
+});
16
+
17
+
18
+
19
+
20
+
21
+
22
+module.exports = app;

+ 392
- 0
package-lock.json Dosyayı Görüntüle

@@ -4,6 +4,15 @@
4 4
   "lockfileVersion": 1,
5 5
   "requires": true,
6 6
   "dependencies": {
7
+    "accepts": {
8
+      "version": "1.3.5",
9
+      "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
10
+      "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
11
+      "requires": {
12
+        "mime-types": "2.1.22",
13
+        "negotiator": "0.6.1"
14
+      }
15
+    },
7 16
     "ansi-colors": {
8 17
       "version": "3.2.3",
9 18
       "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz",
@@ -45,6 +54,11 @@
45 54
       "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz",
46 55
       "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ="
47 56
     },
57
+    "array-flatten": {
58
+      "version": "1.1.1",
59
+      "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
60
+      "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI="
61
+    },
48 62
     "array-unique": {
49 63
       "version": "0.3.2",
50 64
       "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz",
@@ -120,6 +134,38 @@
120 134
         }
121 135
       }
122 136
     },
137
+    "body-parser": {
138
+      "version": "1.18.3",
139
+      "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz",
140
+      "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=",
141
+      "requires": {
142
+        "bytes": "3.0.0",
143
+        "content-type": "1.0.4",
144
+        "debug": "2.6.9",
145
+        "depd": "1.1.2",
146
+        "http-errors": "1.6.3",
147
+        "iconv-lite": "0.4.23",
148
+        "on-finished": "2.3.0",
149
+        "qs": "6.5.2",
150
+        "raw-body": "2.3.3",
151
+        "type-is": "1.6.16"
152
+      },
153
+      "dependencies": {
154
+        "debug": {
155
+          "version": "2.6.9",
156
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
157
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
158
+          "requires": {
159
+            "ms": "2.0.0"
160
+          }
161
+        },
162
+        "ms": {
163
+          "version": "2.0.0",
164
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
165
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
166
+        }
167
+      }
168
+    },
123 169
     "brace-expansion": {
124 170
       "version": "1.1.11",
125 171
       "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
@@ -161,6 +207,11 @@
161 207
       "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
162 208
       "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw=="
163 209
     },
210
+    "bytes": {
211
+      "version": "3.0.0",
212
+      "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",
213
+      "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="
214
+    },
164 215
     "cache-base": {
165 216
       "version": "1.0.1",
166 217
       "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz",
@@ -305,6 +356,26 @@
305 356
         "date-now": "0.1.4"
306 357
       }
307 358
     },
359
+    "content-disposition": {
360
+      "version": "0.5.2",
361
+      "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",
362
+      "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ="
363
+    },
364
+    "content-type": {
365
+      "version": "1.0.4",
366
+      "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz",
367
+      "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA=="
368
+    },
369
+    "cookie": {
370
+      "version": "0.3.1",
371
+      "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
372
+      "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
373
+    },
374
+    "cookie-signature": {
375
+      "version": "1.0.6",
376
+      "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
377
+      "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw="
378
+    },
308 379
     "copy-descriptor": {
309 380
       "version": "0.1.1",
310 381
       "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
@@ -403,6 +474,16 @@
403 474
         }
404 475
       }
405 476
     },
477
+    "depd": {
478
+      "version": "1.1.2",
479
+      "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz",
480
+      "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
481
+    },
482
+    "destroy": {
483
+      "version": "1.0.4",
484
+      "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz",
485
+      "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
486
+    },
406 487
     "detect-file": {
407 488
       "version": "1.0.0",
408 489
       "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz",
@@ -451,6 +532,16 @@
451 532
         "domelementtype": "1.3.1"
452 533
       }
453 534
     },
535
+    "ee-first": {
536
+      "version": "1.1.1",
537
+      "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
538
+      "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
539
+    },
540
+    "encodeurl": {
541
+      "version": "1.0.2",
542
+      "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
543
+      "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k="
544
+    },
454 545
     "end-of-stream": {
455 546
       "version": "1.4.1",
456 547
       "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
@@ -487,6 +578,11 @@
487 578
         "is-symbol": "1.0.2"
488 579
       }
489 580
     },
581
+    "escape-html": {
582
+      "version": "1.0.3",
583
+      "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
584
+      "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg="
585
+    },
490 586
     "escape-string-regexp": {
491 587
       "version": "1.0.5",
492 588
       "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
@@ -497,6 +593,11 @@
497 593
       "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
498 594
       "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A=="
499 595
     },
596
+    "etag": {
597
+      "version": "1.8.1",
598
+      "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
599
+      "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
600
+    },
500 601
     "execa": {
501 602
       "version": "1.0.0",
502 603
       "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
@@ -569,6 +670,58 @@
569 670
         "homedir-polyfill": "1.0.3"
570 671
       }
571 672
     },
673
+    "express": {
674
+      "version": "4.16.4",
675
+      "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz",
676
+      "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==",
677
+      "requires": {
678
+        "accepts": "1.3.5",
679
+        "array-flatten": "1.1.1",
680
+        "body-parser": "1.18.3",
681
+        "content-disposition": "0.5.2",
682
+        "content-type": "1.0.4",
683
+        "cookie": "0.3.1",
684
+        "cookie-signature": "1.0.6",
685
+        "debug": "2.6.9",
686
+        "depd": "1.1.2",
687
+        "encodeurl": "1.0.2",
688
+        "escape-html": "1.0.3",
689
+        "etag": "1.8.1",
690
+        "finalhandler": "1.1.1",
691
+        "fresh": "0.5.2",
692
+        "merge-descriptors": "1.0.1",
693
+        "methods": "1.1.2",
694
+        "on-finished": "2.3.0",
695
+        "parseurl": "1.3.2",
696
+        "path-to-regexp": "0.1.7",
697
+        "proxy-addr": "2.0.4",
698
+        "qs": "6.5.2",
699
+        "range-parser": "1.2.0",
700
+        "safe-buffer": "5.1.2",
701
+        "send": "0.16.2",
702
+        "serve-static": "1.13.2",
703
+        "setprototypeof": "1.1.0",
704
+        "statuses": "1.4.0",
705
+        "type-is": "1.6.16",
706
+        "utils-merge": "1.0.1",
707
+        "vary": "1.1.2"
708
+      },
709
+      "dependencies": {
710
+        "debug": {
711
+          "version": "2.6.9",
712
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
713
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
714
+          "requires": {
715
+            "ms": "2.0.0"
716
+          }
717
+        },
718
+        "ms": {
719
+          "version": "2.0.0",
720
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
721
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
722
+        }
723
+      }
724
+    },
572 725
     "extend-shallow": {
573 726
       "version": "3.0.2",
574 727
       "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz",
@@ -668,6 +821,35 @@
668 821
         }
669 822
       }
670 823
     },
824
+    "finalhandler": {
825
+      "version": "1.1.1",
826
+      "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz",
827
+      "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==",
828
+      "requires": {
829
+        "debug": "2.6.9",
830
+        "encodeurl": "1.0.2",
831
+        "escape-html": "1.0.3",
832
+        "on-finished": "2.3.0",
833
+        "parseurl": "1.3.2",
834
+        "statuses": "1.4.0",
835
+        "unpipe": "1.0.0"
836
+      },
837
+      "dependencies": {
838
+        "debug": {
839
+          "version": "2.6.9",
840
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
841
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
842
+          "requires": {
843
+            "ms": "2.0.0"
844
+          }
845
+        },
846
+        "ms": {
847
+          "version": "2.0.0",
848
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
849
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
850
+        }
851
+      }
852
+    },
671 853
     "find-up": {
672 854
       "version": "3.0.0",
673 855
       "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
@@ -707,6 +889,11 @@
707 889
       "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
708 890
       "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA="
709 891
     },
892
+    "forwarded": {
893
+      "version": "0.1.2",
894
+      "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
895
+      "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ="
896
+    },
710 897
     "fragment-cache": {
711 898
       "version": "0.2.1",
712 899
       "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
@@ -715,6 +902,11 @@
715 902
         "map-cache": "0.2.2"
716 903
       }
717 904
     },
905
+    "fresh": {
906
+      "version": "0.5.2",
907
+      "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
908
+      "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
909
+    },
718 910
     "fs.realpath": {
719 911
       "version": "1.0.0",
720 912
       "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -860,6 +1052,25 @@
860 1052
         "readable-stream": "1.1.14"
861 1053
       }
862 1054
     },
1055
+    "http-errors": {
1056
+      "version": "1.6.3",
1057
+      "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
1058
+      "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
1059
+      "requires": {
1060
+        "depd": "1.1.2",
1061
+        "inherits": "2.0.3",
1062
+        "setprototypeof": "1.1.0",
1063
+        "statuses": "1.4.0"
1064
+      }
1065
+    },
1066
+    "iconv-lite": {
1067
+      "version": "0.4.23",
1068
+      "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz",
1069
+      "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==",
1070
+      "requires": {
1071
+        "safer-buffer": "2.1.2"
1072
+      }
1073
+    },
863 1074
     "inflight": {
864 1075
       "version": "1.0.6",
865 1076
       "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -884,6 +1095,11 @@
884 1095
       "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz",
885 1096
       "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA=="
886 1097
     },
1098
+    "ipaddr.js": {
1099
+      "version": "1.8.0",
1100
+      "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz",
1101
+      "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4="
1102
+    },
887 1103
     "is-accessor-descriptor": {
888 1104
       "version": "0.1.6",
889 1105
       "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
@@ -1122,6 +1338,11 @@
1122 1338
         "object-visit": "1.0.1"
1123 1339
       }
1124 1340
     },
1341
+    "media-typer": {
1342
+      "version": "0.3.0",
1343
+      "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
1344
+      "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
1345
+    },
1125 1346
     "mem": {
1126 1347
       "version": "4.1.0",
1127 1348
       "resolved": "https://registry.npmjs.org/mem/-/mem-4.1.0.tgz",
@@ -1132,6 +1353,16 @@
1132 1353
         "p-is-promise": "2.0.0"
1133 1354
       }
1134 1355
     },
1356
+    "merge-descriptors": {
1357
+      "version": "1.0.1",
1358
+      "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
1359
+      "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E="
1360
+    },
1361
+    "methods": {
1362
+      "version": "1.1.2",
1363
+      "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
1364
+      "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
1365
+    },
1135 1366
     "micromatch": {
1136 1367
       "version": "3.1.10",
1137 1368
       "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz",
@@ -1152,6 +1383,24 @@
1152 1383
         "to-regex": "3.0.2"
1153 1384
       }
1154 1385
     },
1386
+    "mime": {
1387
+      "version": "1.4.1",
1388
+      "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
1389
+      "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
1390
+    },
1391
+    "mime-db": {
1392
+      "version": "1.38.0",
1393
+      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz",
1394
+      "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg=="
1395
+    },
1396
+    "mime-types": {
1397
+      "version": "2.1.22",
1398
+      "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz",
1399
+      "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==",
1400
+      "requires": {
1401
+        "mime-db": "1.38.0"
1402
+      }
1403
+    },
1155 1404
     "mimic-fn": {
1156 1405
       "version": "1.2.0",
1157 1406
       "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
@@ -1257,6 +1506,11 @@
1257 1506
         "to-regex": "3.0.2"
1258 1507
       }
1259 1508
     },
1509
+    "negotiator": {
1510
+      "version": "0.6.1",
1511
+      "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz",
1512
+      "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk="
1513
+    },
1260 1514
     "nice-try": {
1261 1515
       "version": "1.0.5",
1262 1516
       "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
@@ -1352,6 +1606,14 @@
1352 1606
         "isobject": "3.0.1"
1353 1607
       }
1354 1608
     },
1609
+    "on-finished": {
1610
+      "version": "2.3.0",
1611
+      "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
1612
+      "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
1613
+      "requires": {
1614
+        "ee-first": "1.1.1"
1615
+      }
1616
+    },
1355 1617
     "once": {
1356 1618
       "version": "1.4.0",
1357 1619
       "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
@@ -1411,6 +1673,11 @@
1411 1673
       "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz",
1412 1674
       "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY="
1413 1675
     },
1676
+    "parseurl": {
1677
+      "version": "1.3.2",
1678
+      "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz",
1679
+      "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M="
1680
+    },
1414 1681
     "pascalcase": {
1415 1682
       "version": "0.1.1",
1416 1683
       "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz",
@@ -1431,6 +1698,11 @@
1431 1698
       "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
1432 1699
       "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
1433 1700
     },
1701
+    "path-to-regexp": {
1702
+      "version": "0.1.7",
1703
+      "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
1704
+      "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
1705
+    },
1434 1706
     "pathval": {
1435 1707
       "version": "1.1.0",
1436 1708
       "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz",
@@ -1441,6 +1713,15 @@
1441 1713
       "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
1442 1714
       "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs="
1443 1715
     },
1716
+    "proxy-addr": {
1717
+      "version": "2.0.4",
1718
+      "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz",
1719
+      "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==",
1720
+      "requires": {
1721
+        "forwarded": "0.1.2",
1722
+        "ipaddr.js": "1.8.0"
1723
+      }
1724
+    },
1444 1725
     "pump": {
1445 1726
       "version": "3.0.0",
1446 1727
       "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
@@ -1450,6 +1731,27 @@
1450 1731
         "once": "1.4.0"
1451 1732
       }
1452 1733
     },
1734
+    "qs": {
1735
+      "version": "6.5.2",
1736
+      "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
1737
+      "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA=="
1738
+    },
1739
+    "range-parser": {
1740
+      "version": "1.2.0",
1741
+      "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",
1742
+      "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4="
1743
+    },
1744
+    "raw-body": {
1745
+      "version": "2.3.3",
1746
+      "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz",
1747
+      "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==",
1748
+      "requires": {
1749
+        "bytes": "3.0.0",
1750
+        "http-errors": "1.6.3",
1751
+        "iconv-lite": "0.4.23",
1752
+        "unpipe": "1.0.0"
1753
+      }
1754
+    },
1453 1755
     "readable-stream": {
1454 1756
       "version": "1.1.14",
1455 1757
       "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
@@ -1509,6 +1811,11 @@
1509 1811
       "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz",
1510 1812
       "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg=="
1511 1813
     },
1814
+    "safe-buffer": {
1815
+      "version": "5.1.2",
1816
+      "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1817
+      "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
1818
+    },
1512 1819
     "safe-regex": {
1513 1820
       "version": "1.1.0",
1514 1821
       "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz",
@@ -1517,11 +1824,62 @@
1517 1824
         "ret": "0.1.15"
1518 1825
       }
1519 1826
     },
1827
+    "safer-buffer": {
1828
+      "version": "2.1.2",
1829
+      "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1830
+      "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
1831
+    },
1520 1832
     "semver": {
1521 1833
       "version": "5.6.0",
1522 1834
       "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz",
1523 1835
       "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg=="
1524 1836
     },
1837
+    "send": {
1838
+      "version": "0.16.2",
1839
+      "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz",
1840
+      "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==",
1841
+      "requires": {
1842
+        "debug": "2.6.9",
1843
+        "depd": "1.1.2",
1844
+        "destroy": "1.0.4",
1845
+        "encodeurl": "1.0.2",
1846
+        "escape-html": "1.0.3",
1847
+        "etag": "1.8.1",
1848
+        "fresh": "0.5.2",
1849
+        "http-errors": "1.6.3",
1850
+        "mime": "1.4.1",
1851
+        "ms": "2.0.0",
1852
+        "on-finished": "2.3.0",
1853
+        "range-parser": "1.2.0",
1854
+        "statuses": "1.4.0"
1855
+      },
1856
+      "dependencies": {
1857
+        "debug": {
1858
+          "version": "2.6.9",
1859
+          "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
1860
+          "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
1861
+          "requires": {
1862
+            "ms": "2.0.0"
1863
+          }
1864
+        },
1865
+        "ms": {
1866
+          "version": "2.0.0",
1867
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
1868
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
1869
+        }
1870
+      }
1871
+    },
1872
+    "serve-static": {
1873
+      "version": "1.13.2",
1874
+      "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz",
1875
+      "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==",
1876
+      "requires": {
1877
+        "encodeurl": "1.0.2",
1878
+        "escape-html": "1.0.3",
1879
+        "parseurl": "1.3.2",
1880
+        "send": "0.16.2"
1881
+      }
1882
+    },
1525 1883
     "set-blocking": {
1526 1884
       "version": "2.0.0",
1527 1885
       "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
@@ -1548,6 +1906,11 @@
1548 1906
         }
1549 1907
       }
1550 1908
     },
1909
+    "setprototypeof": {
1910
+      "version": "1.1.0",
1911
+      "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
1912
+      "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
1913
+    },
1551 1914
     "shebang-command": {
1552 1915
       "version": "1.2.0",
1553 1916
       "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
@@ -1735,6 +2098,11 @@
1735 2098
         }
1736 2099
       }
1737 2100
     },
2101
+    "statuses": {
2102
+      "version": "1.4.0",
2103
+      "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz",
2104
+      "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew=="
2105
+    },
1738 2106
     "string-width": {
1739 2107
       "version": "2.1.1",
1740 2108
       "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
@@ -1818,6 +2186,15 @@
1818 2186
       "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",
1819 2187
       "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g=="
1820 2188
     },
2189
+    "type-is": {
2190
+      "version": "1.6.16",
2191
+      "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz",
2192
+      "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==",
2193
+      "requires": {
2194
+        "media-typer": "0.3.0",
2195
+        "mime-types": "2.1.22"
2196
+      }
2197
+    },
1821 2198
     "union-value": {
1822 2199
       "version": "1.0.0",
1823 2200
       "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz",
@@ -1850,6 +2227,11 @@
1850 2227
         }
1851 2228
       }
1852 2229
     },
2230
+    "unpipe": {
2231
+      "version": "1.0.0",
2232
+      "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
2233
+      "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
2234
+    },
1853 2235
     "unset-value": {
1854 2236
       "version": "1.0.0",
1855 2237
       "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz",
@@ -1901,6 +2283,16 @@
1901 2283
       "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
1902 2284
       "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ=="
1903 2285
     },
2286
+    "utils-merge": {
2287
+      "version": "1.0.1",
2288
+      "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
2289
+      "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
2290
+    },
2291
+    "vary": {
2292
+      "version": "1.1.2",
2293
+      "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
2294
+      "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
2295
+    },
1904 2296
     "which": {
1905 2297
       "version": "1.3.1",
1906 2298
       "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",

+ 2
- 0
package.json Dosyayı Görüntüle

@@ -8,12 +8,14 @@
8 8
   },
9 9
   "main": "node app.js",
10 10
   "scripts": {
11
+    "start": "node app.js",
11 12
     "test": "mocha"
12 13
   },
13 14
   "author": "Luiserebii",
14 15
   "license": "MIT",
15 16
   "dependencies": {
16 17
     "chai": "^4.2.0",
18
+    "express": "^4.16.4",
17 19
     "jshint": "^2.10.1",
18 20
     "mocha": "^6.0.1"
19 21
   }

+ 7
- 0
routes/api_v1.js Dosyayı Görüntüle

@@ -0,0 +1,7 @@
1
+const express = require('express');
2
+
3
+var router = express.Router();
4
+
5
+
6
+
7
+module.exports = router;

BIN
src/.math.js.swp Dosyayı Görüntüle


Loading…
İptal
Kaydet