Добавил роутинг

И всякие косметические правки
This commit is contained in:
2020-03-02 22:26:02 +03:00
parent a031c12a48
commit a002d130e0
8 changed files with 213 additions and 100 deletions

View File

@ -40,7 +40,7 @@ end
get "/api/status" do |env|
profile = app.profile Dayoff::ProfileId.new(env.get("profile_id").to_s)
total_span = profile.total_status now
total_span = profile.total_status now.at_beginning_of_day
today_span = profile.date_status now
data = {
started: profile.started?,