Hi, I scaffold a new project with lein new serverless-cljs ok-then and cd into the directory with project.clj.
I then add one function to my core.clj like this:
(ns ok-then.core
(:require [cljs-lambda.macros :refer-macros [defgateway]]))
(defgateway echo [event ctx]
{:status 200
:headers {:content-type (-> event :headers :content-type)}
:body (event :body)})
(defn ok []
(println "ok"))
How can I call this function from the REPL?
Hi, I scaffold a new project with
lein new serverless-cljs ok-thenand cd into the directory with project.clj.I then add one function to my core.clj like this:
How can I call this function from the REPL?