Skip to content

Commit

Permalink
(commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdewey committed May 3, 2024
1 parent c4b8aee commit c51141a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1695,3 +1695,7 @@ vye:
schema_contract:
appointments_index: 'modules/vaos/app/schemas/appointments_index.json'
test_index: 'spec/fixtures/schema_contract/test_schema.json'

analytics:
unique_user:
salt: 'fake-salt'
10 changes: 0 additions & 10 deletions modules/analytics/app/controllers/HashesController.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Analytics
module V0
class AnalyticsController < ApplicationController
skip_before_action :authenticate

def index
data = { hello: 'world', salt: Settings.analytics.unique_user.salt }
render json: data
end
end
end
end
2 changes: 1 addition & 1 deletion modules/analytics/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

Analytics::Engine.routes.draw do
namespace :v0, defaults: { format: 'json' } do
get '/user/hashes', to: 'hashes#index'
get '/user/hashes', to: 'analytics#index'
end
end

0 comments on commit c51141a

Please sign in to comment.