lib/zold/node/front.rb in zold-0.11.6 vs lib/zold/node/front.rb in zold-0.11.7

- old
+ new

@@ -85,14 +85,21 @@ headers['Access-Control-Allow-Origin'] = '*' headers[Http::SCORE_HEADER] = score.reduced(16).to_s end get '/robots.txt' do + content_type 'text/plain' 'User-agent: *' end - get '/v' do + get '/version' do + content_type 'text/plain' VERSION + end + + get '/score' do + content_type 'text/plain' + score.to_s end get '/favicon.ico' do if score.value >= 16 redirect 'https://www.zold.io/images/logo-green.png'