tmp not exactly working, but closer!
This commit is contained in:
parent
3768178133
commit
5885ecc7b2
|
@ -20,7 +20,7 @@
|
||||||
"takes a string parameter from the browser and returns a sequence
|
"takes a string parameter from the browser and returns a sequence
|
||||||
of program keys"
|
of program keys"
|
||||||
[programs-str]
|
[programs-str]
|
||||||
(map keyword (split programs-str #"[,\s]\s*")))
|
(map keyword (split programs-str #"[,\s]+")))
|
||||||
|
|
||||||
(defn get-programs
|
(defn get-programs
|
||||||
"gets a sequence of five programs from the source-code repository."
|
"gets a sequence of five programs from the source-code repository."
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
(response
|
(response
|
||||||
{:names (map name (keys source-programs/programs))}))
|
{:names (map name (keys source-programs/programs))}))
|
||||||
|
|
||||||
(GET "/init" [& programs]
|
(GET "/init" {{programs "programs"} :params}
|
||||||
(println "in init")
|
(println "in init")
|
||||||
(println (str programs))
|
(println (str programs))
|
||||||
(swap! games-store add-game programs)
|
(swap! games-store add-game programs)
|
||||||
|
|
Loading…
Reference in New Issue