Skip to content
This repository was archived by the owner on Jun 16, 2019. It is now read-only.

Commit a7142c0

Browse files
Implemented *_questitem routes for Creatures and GameObjects
1 parent 832cba5 commit a7142c0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

app/Http/routes.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,14 @@
791791
})
792792
->where('id', '[0-9]+');
793793

794+
Route::get('/creature/questitem/{id}', function($id) {
795+
796+
$results = DB::connection('world')->select("SELECT * FROM creature_questitem WHERE CreatureEntry = ?", [$id]);
797+
798+
return Response::json($results);
799+
})
800+
->where('id', '[0-9]+');
801+
794802

795803
/* Gameobjects */
796804

@@ -879,6 +887,14 @@
879887
})
880888
->where('id', '[0-9]+');
881889

890+
Route::get('/gameobject/questitem/{id}', function($id) {
891+
892+
$results = DB::connection('world')->select("SELECT * FROM gameobject_questitem WHERE GameObjectEntry = ?", [$id]);
893+
894+
return Response::json($results);
895+
})
896+
->where('id', '[0-9]+');
897+
882898

883899
/* Items */
884900

0 commit comments

Comments
 (0)