Skip to content

Commit 1c3f7c9

Browse files
Setting up the enrichments poc
1 parent a76567e commit 1c3f7c9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# frozen_string_literal: true
2+
3+
class EnrichmentsController < ApplicationController
4+
def doi
5+
render(json: { message: params[:doi] })
6+
end
7+
8+
def dois
9+
render(json: { message: "list result" })
10+
end
11+
end

config/routes.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
get "heartbeat", to: "heartbeat#index"
55

66
root to: "heartbeat#index"
7+
8+
get "doi/*doi", to: "enrichments#doi", constraints: { id: /.+/ }
9+
get "dois", to: "enrichments#dois", constraints: { id: /.+/ }
710
end

0 commit comments

Comments
 (0)