runQuery("SELECT sku, # max(ProductPrice_OriginalPrice) as MX, # min(ProductPrice_OriginalPrice) as MN, # ((max(ProductPrice_OriginalPrice)-min(ProductPrice_OriginalPrice))/max(ProductPrice_OriginalPrice)) as Di # FROM prices # GROUP BY sku # ORDER BY Di desc # LIMIT 300", # [] # ); # reply_json([ # 'success' => true, # 'result' => $wtf # ]); die(); # }); // route for testing... // --- Route::add('/test/([0-9a-zA-Z-_\/]*)', function($test) { if (file_exists(TESTS_DIRECTORY . $test .'.php')) { if (!Benchmark::exist('start')) Benchmark::add_spot('start'); require(TESTS_DIRECTORY . $test .'.php'); } else { echo "Test {$test} not exist"; } die(); });