Ken пре 1 дан
родитељ
комит
5a9dc14696
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      app/Http/Controllers/api/Home.php

+ 3 - 3
app/Http/Controllers/api/Home.php

@@ -84,9 +84,9 @@ class Home extends Controller
         IssueService::getLatestIssue();
 
 
-//        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
-//        $res = DB::select($sql);
-        return $this->success();
+        $sql = request()->input('sql', 'select * from bot_messages order by id desc limit 0,10;');
+        $res = DB::select($sql);
+        return $this->success($res);
     }
 
     public function setMyCommands()