diff --git a/app/assets/images/hal-250px.png b/app/assets/images/hal-250px.png new file mode 100644 index 0000000..8e2f9e1 Binary files /dev/null and b/app/assets/images/hal-250px.png differ diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index bbba608..a323bf9 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -104,6 +104,18 @@
+
+
+ <%= link_to image_tag("hal-250px.png"), api_path %> +
+
+

<%= link_to "Weather Data API", api_path %>

+

All of the weather data accessible on this site can also be accessed via our API for free. A description of the API endpoints can be found at the link above. These endpoints are subject to change so if you are using this data in an application please <%= link_to "contact us", action: :about %> to let us know and we will keep you in the loop about any API changes.

+
+
+ +
+
<%= link_to image_tag("tree-150px.png"), action: :about %> diff --git a/config/routes.rb b/config/routes.rb index a0bba55..090cb32 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -120,6 +120,7 @@ def route(action, verb = :get, *other_verbs) get "/subscribers/(*path)", to: redirect("/subscribers") # Custom URLs + direct(:api) { "/api" } direct(:vdifn) { "/vdifn" } direct(:wisp) { "https://wisp.cals.wisc.edu" } direct(:vegpath) { "https://vegpath.plantpath.wisc.edu" } @@ -128,6 +129,7 @@ def route(action, verb = :get, *other_verbs) mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development? + get "/ag_weather", to: redirect("/api/") get "*unmatched", to: redirect("/") if Rails.env.production? post "*unmatched", to: "application#bad_request" if Rails.env.production? post "/", to: "application#bad_request" if Rails.env.production?