diff options
| author | Jules <jules@asdf.us> | 2018-03-31 09:10:55 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2018-03-31 09:10:55 -0400 |
| commit | 19d8a1315cfaa51cb342570cd31df525e56e0513 (patch) | |
| tree | e1dc944b653a5be2e2e3eb4144ba832f730e1449 /lib/index.js | |
| parent | 2e20acf6ed26e52cff721cb891dbb8b788b57724 (diff) | |
fix router order
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/index.js b/lib/index.js index 29baa70..781ac04 100644 --- a/lib/index.js +++ b/lib/index.js @@ -45,6 +45,11 @@ site.init = function(){ res.json(img) }) }) + app.get("/p/get/randomascii", function(req, res){ + db.getRandomAscii().then(function(img){ + res.json(img) + }) + }) app.get("/p/get/", function(req, res){ db.getLatest().then(function(img){ res.json(img) @@ -78,12 +83,6 @@ site.init = function(){ }) }) - app.get("/p/get/randomascii", function(req, res){ - db.getRandomAscii().then(function(img){ - res.json(img) - }) - }) - /* shaderblaster / asciiblaster apis */ app.post("/cgi-bin/im/shader/upload", multer_upload.single('qqfile'), function(req, res){ var now = Math.floor(Date.now() / 1000) |
