poly server
BIN
app/polys/low-poly-texture-10.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
app/polys/low-poly-texture-11.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
app/polys/low-poly-texture-12.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
app/polys/low-poly-texture-13.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
app/polys/low-poly-texture-14.jpg
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
app/polys/low-poly-texture-15.jpg
Normal file
After Width: | Height: | Size: 41 KiB |
BIN
app/polys/low-poly-texture-16.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
app/polys/low-poly-texture-17.jpg
Normal file
After Width: | Height: | Size: 49 KiB |
BIN
app/polys/low-poly-texture-18.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
app/polys/low-poly-texture-19.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
app/polys/low-poly-texture-2.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
app/polys/low-poly-texture-20.jpg
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
app/polys/low-poly-texture-21.jpg
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
app/polys/low-poly-texture-22.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
app/polys/low-poly-texture-22.png
Normal file
After Width: | Height: | Size: 153 KiB |
BIN
app/polys/low-poly-texture-23.jpg
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
app/polys/low-poly-texture-23.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
app/polys/low-poly-texture-24.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
app/polys/low-poly-texture-24.png
Normal file
After Width: | Height: | Size: 202 KiB |
BIN
app/polys/low-poly-texture-25.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
app/polys/low-poly-texture-25.png
Normal file
After Width: | Height: | Size: 248 KiB |
BIN
app/polys/low-poly-texture-26.jpg
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
app/polys/low-poly-texture-26.png
Normal file
After Width: | Height: | Size: 233 KiB |
BIN
app/polys/low-poly-texture-27.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
app/polys/low-poly-texture-27.png
Normal file
After Width: | Height: | Size: 340 KiB |
BIN
app/polys/low-poly-texture-28.jpg
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
app/polys/low-poly-texture-28.png
Normal file
After Width: | Height: | Size: 237 KiB |
BIN
app/polys/low-poly-texture-29.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
app/polys/low-poly-texture-29.png
Normal file
After Width: | Height: | Size: 200 KiB |
BIN
app/polys/low-poly-texture-3.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
app/polys/low-poly-texture-30.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
app/polys/low-poly-texture-30.png
Normal file
After Width: | Height: | Size: 185 KiB |
BIN
app/polys/low-poly-texture-4.jpg
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
app/polys/low-poly-texture-5.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
app/polys/low-poly-texture-6.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
app/polys/low-poly-texture-7.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
app/polys/low-poly-texture-8.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
app/polys/low-poly-texture-9.jpg
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
app/polys/low-poly-texture.jpg
Normal file
After Width: | Height: | Size: 32 KiB |
17
lib/poly.js
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by Martin on 15/02/2016.
|
||||
*/
|
||||
|
||||
|
||||
module.exports = function(req,res) {
|
||||
var globSync = require('glob').sync;
|
||||
var polys = globSync('./polys/**/*.jpg', { cwd: __dirname });
|
||||
|
||||
|
||||
|
||||
// Log proxy requests
|
||||
var morgan = require('morgan');
|
||||
|
||||
|
||||
|
||||
};
|
@ -4,10 +4,14 @@ var express = require('express'), path = require('path'), http = require('http')
|
||||
today = require('./lib/today'),
|
||||
morgan = require('morgan'), cookieParser = require('cookie-parser'),session = require('express-session')
|
||||
methodoverride = require('method-override'), bodyparser = require('body-parser'), errorhandler = require('errorhandler');
|
||||
|
||||
|
||||
//train = require('lib/train')
|
||||
/* ,submit = require('./routes/mongo/submit') */
|
||||
;
|
||||
|
||||
var polys = require('./lib/poly.js');
|
||||
|
||||
var logger = require('log4js').getLogger();
|
||||
var app = express();
|
||||
GLOBAL.lastcheck = 0;
|
||||
@ -65,6 +69,8 @@ app.use('/btc', btc.doBTC);
|
||||
app.route('/clock')
|
||||
.get(today.getClock);
|
||||
|
||||
app.route('/poly').get(polys);
|
||||
|
||||
|
||||
app.use('/lot', function (req, res) {
|
||||
var pg = require('pg');
|
||||
|