Reimplemented EEPROM and Twitter lookups.
This commit is contained in:
parent
7160e9909d
commit
4ad19c6363
17 changed files with 1078 additions and 402 deletions
public
|
@ -6,6 +6,12 @@ require_once __DIR__ . '/../uiharu.php';
|
|||
// should be in a cron job
|
||||
$db->execute('DELETE FROM `uih_metadata_cache` WHERE `metadata_created` < NOW() - INTERVAL 7 DAY');
|
||||
|
||||
$ctx->registerLookup(new \Uiharu\Lookup\EEPROMLookup('eeprom', 'eeprom.flashii.net', ['i.fii.moe', 'i.flashii.net']));
|
||||
if(UIH_DEBUG)
|
||||
$ctx->registerLookup(new \Uiharu\Lookup\EEPROMLookup('devrom', 'eeprom.edgii.net', ['i.edgii.net']));
|
||||
|
||||
$ctx->registerLookup(new \Uiharu\Lookup\TwitterLookup);
|
||||
|
||||
$ctx->setupHttp();
|
||||
|
||||
$ctx->registerApi(new \Uiharu\Apis\v1_0($ctx));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue