add axios, some db changes

This commit is contained in:
2026-09-19 16:02:43 +02:00
parent 096c3b0fd5
commit 99acf30fb9
7 changed files with 388 additions and 10 deletions
+10 -2
View File
@@ -3,10 +3,18 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use \App\Models\Wish;
use Illuminate\Support\Facades\DB;
class WishController extends Controller
{
public function getOpenWishes(int $page) {
public function GetOpenWishes() {
$wishes = DB::table('wishes')
->where('status', 'open')
->orWhere('status', 'promised')
->get();
return $wishes;
}
}