mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 13:01:08 -05:00
Protect the langs api call with the apiKey
This commit is contained in:
parent
30068ae7f0
commit
d6ca6ec4ee
@ -209,6 +209,11 @@ class Api extends Main
|
|||||||
|
|
||||||
function langs()
|
function langs()
|
||||||
{
|
{
|
||||||
|
if (config_item('apikey') != $this->input->get('apikey'))
|
||||||
|
{
|
||||||
|
die("Invalid API key\n");
|
||||||
|
}
|
||||||
|
|
||||||
$languages = $this->languages->get_languages();
|
$languages = $this->languages->get_languages();
|
||||||
echo json_encode($languages);
|
echo json_encode($languages);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user