Add random repo route
This commit is contained in:
parent
512871ad87
commit
7d6c82a225
6
api/random_repo.php
Normal file
6
api/random_repo.php
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$repos = json_decode(file_get_contents("https://git.reim.ar/api/v1/repos/search"))->data;
|
||||||
|
$repo = $repos[array_rand($repos)];
|
||||||
|
header("Location: $repo->html_url");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user