mÃh
This commit is contained in:
1 parent
788b8a3990
commit
e59651f93f
1 file changed
+1
-1
+1
-1
@@ -277,7 +277,7 @@ http.createServer((req, res) => {
|
|||||||
else if(filePath == "./random") {
|
else if(filePath == "./random") {
|
||||||
sql.query("select `id` from `f0ck`.`items` order by rand() limit 1", null, (err, rows, fields) => {
|
sql.query("select `id` from `f0ck`.`items` order by rand() limit 1", null, (err, rows, fields) => {
|
||||||
res.writeHead(301, {
|
res.writeHead(301, {
|
||||||
Location: req.headers.host + '/' + rows[0][0].id
|
Location: req.headers.host + '/' + rows[0].id
|
||||||
});
|
});
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user