Commit 37525acc authored by charlie-ablett's avatar charlie-ablett
Browse files

add root in api and index action

parent 0d07d3f8
......@@ -6,6 +6,14 @@ module Api
respond_to :json
def index
render json: {
data: {
message: "INK API works! - To use it, point to /api/"
}
}
end
def anyone
render json: {
data: {
......
......@@ -76,6 +76,8 @@ Rails.application.routes.draw do
post 'create_from_process_step'
end
end
root 'pages#anyone'
end
# scope module: :v2, constraints: ApiConstraints.new(version: 2, default: true) do
......@@ -83,5 +85,5 @@ Rails.application.routes.draw do
# end
end
root 'api/v1/pages#anyone'
root 'api/v1/pages#index'
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment