Skip to content

Commit

Permalink
Add simple stats endpoint
Browse files Browse the repository at this point in the history
As a beginning of #35, this implements an MVP stats endpoint that just
exposes the date that the data was processed.

cc @adborden @KyleW @mikeubell
  • Loading branch information
tdooner committed Oct 11, 2016
1 parent eda4bbc commit b5370f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/stats/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"date_processed": "2016-10-10"
}
6 changes: 6 additions & 0 deletions process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,9 @@ def build_file(filename, &block)
))
end
end

build_file('/stats') do |f|
f.puts JSON.pretty_generate(
date_processed: Date.today
)
end

1 comment on commit b5370f5

@adborden
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should include the timestamp too.

Please sign in to comment.