hadimaster65555 commited on
Commit
1ae3280
·
1 Parent(s): 726b114

add new api

Browse files
Files changed (1) hide show
  1. function.R +14 -0
function.R CHANGED
@@ -1,5 +1,19 @@
1
  # plumber.R
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  #* Echo back the input
4
  #* @param msg The message to echo
5
  #* @get /echo
 
1
  # plumber.R
2
 
3
+ #* Echo back the input
4
+ #* @get /
5
+ function() {
6
+ list(msg = paste0("Hello, World!"))
7
+ }
8
+
9
+
10
+ #* Echo back the input
11
+ #* @get /iris
12
+ function() {
13
+ list(data = head(iris))
14
+ }
15
+
16
+
17
  #* Echo back the input
18
  #* @param msg The message to echo
19
  #* @get /echo