re-format categories, add categories api

This commit is contained in:
Hexaitos 2024-11-10 18:47:52 +01:00
parent 4642dbf0d4
commit 5070ec95b5
2 changed files with 41 additions and 36 deletions

View File

@ -1,40 +1,40 @@
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_cenchroides Category:Quality_images_of_Falco_cenchroides
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_amurensis Category:Quality_images_of_Falco_amurensis
https://commons.wikimedia.org/wiki/Category:Quality_images_of_captive_Falco_berigora Category:Quality_images_of_captive_Falco_berigora
https://commons.wikimedia.org/wiki/Category:Quality_images_of_captive_Falco_biarmicus Category:Quality_images_of_captive_Falco_biarmicus
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_cherrug Category:Quality_images_of_Falco_cherrug
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_columbarius Category:Quality_images_of_Falco_columbarius
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_naumanni Category:Quality_images_of_Falco_naumanni
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_rusticolus Category:Quality_images_of_Falco_rusticolus
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_sparverius Category:Quality_images_of_Falco_sparverius
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_tinnunculus Category:Quality_images_of_Falco_tinnunculus
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Falco_vespertinus Category:Quality_images_of_Falco_vespertinus
https://commons.wikimedia.org/wiki/Category:Quality_images_of_Caracara_plancus Category:Quality_images_of_Caracara_plancus
Category:Quality_images_of_Accipiter_badius Category:Quality_images_of_Accipiter_badius
Category:Quality_images_of_Accipiter_cooperii Category:Quality_images_of_Accipiter_cooperii
Category:Quality_images_of_Accipiter_minullus Category:Quality_images_of_Accipiter_minullus
Category:Quality_images_of_Accipiter_nisus Category:Quality_images_of_Accipiter_nisus
Category:Quality images of Aquila audax Category:Quality_images_of_Aquila_audax
Category:Quality images of Aquila chrysaetos Category:Quality_images_of_Aquila_chrysaetos
Category:Quality images of captive Aquila heliaca Category:Quality_images_of_captive_Aquila_heliaca
Category:Quality images of captive Aquila nipalensis Category:Quality_images_of_captive_Aquila_nipalensis
Category:Quality images of Aquila spilogaster Category:Quality_images_of_Aquila_spilogaster
Category:Quality images of Buteo augur Category:Quality_images_of_Buteo_augur
Category:Quality images of Buteo buteo Category:Quality_images_of_Buteo_buteo
Category:Quality images of Buteo galapagoensis Category:Quality_images_of_Buteo_galapagoensis
Category:Quality images of Buteo jamaicensis Category:Quality_images_of_Buteo_jamaicensis
Category:Quality images of Buteo lineatus Category:Quality_images_of_Buteo_lineatus
Category:Quality images of Buteo regalis Category:Quality_images_of_Buteo_regalis
Category:Quality images of Buteogallus Category:Quality_images_of_Buteogallus
Category:Quality images of Circaetus gallicus Category:Quality_images_of_Circaetus_gallicus
Category:Quality images of Circaetus pectoralis Category:Quality_images_of_Circaetus_pectoralis
Category:Quality images of Circus aeruginosus Category:Quality_images_of_Circus_aeruginosus
Category:Quality images of Circus cyaneus Category:Quality_images_of_Circus_cyaneus
Category:Quality images of Circus hudsonius Category:Quality_images_of_Circus_hudsonius
Category:Quality images of Haliaeetus albicilla Category:Quality_images_of_Haliaeetus_albicilla
Category:Quality images of Haliaeetus leucocephalus Category:Quality_images_of_Haliaeetus_leucocephalus
Category:Quality images of Haliaeetus leucogaster Category:Quality_images_of_Haliaeetus_leucogaster
Category:Quality images of captive Haliaeetus pelagicus Category:Quality_images_of_captive_Haliaeetus_pelagicus
Category:Quality images of Haliaeetus vocifer Category:Quality_images_of_Haliaeetus_vocifer
Category:Quality images of Haliastur indus Category:Quality_images_of_Haliastur_indus
Category:Quality images of Haliastur sphenurus Category:Quality_images_of_Haliastur_sphenurus

View File

@ -22,3 +22,8 @@ get '/api/random' do
image = get_random_image(get_images_by_category(categories)) image = get_random_image(get_images_by_category(categories))
image.to_json image.to_json
end end
get '/api/categories' do
content_type :json
categories.to_json
end