diff --git a/api/.env.example.ini b/api/.env.example.ini index 163a056..265d5ce 100755 --- a/api/.env.example.ini +++ b/api/.env.example.ini @@ -5,4 +5,11 @@ pass = "" [databases] vlw = "" -battlestation = "" \ No newline at end of file +battlestation = "" + +; Forgejo language chart endpoints config +[about_languages] +; CSV of Forgejo profiles to include public source repositories from +scan_profiles = "" +; Path to a JSON file to store cached language endpoint responses +cache_file = "" \ No newline at end of file diff --git a/api/endpoints/about/languages/GET.php b/api/endpoints/about/languages/GET.php new file mode 100644 index 0000000..e25ab54 --- /dev/null +++ b/api/endpoints/about/languages/GET.php @@ -0,0 +1,29 @@ +value))->post(["FUCK YOU"]); + // Return 404 Not Found if response array is empty + return self::cache_exists() + ? new Response(self::load_cache()) + : $bitch; + } + } \ No newline at end of file diff --git a/api/endpoints/about/languages/POST.php b/api/endpoints/about/languages/POST.php new file mode 100644 index 0000000..43c0b71 --- /dev/null +++ b/api/endpoints/about/languages/POST.php @@ -0,0 +1,13 @@ +