((
let webApp =
choose [
route "/ping" >=> text "pong"
route "/" >=> htmlFile "/pages/index.html" ]
или такое
(defn app
[request]
(let [{:keys [uri]} request]
(case uri
"/" (page-index request)
"/hello" (page-hello request)
(page-404 request))))
Size: a a a
((
let webApp =
choose [
route "/ping" >=> text "pong"
route "/" >=> htmlFile "/pages/index.html" ]
(defn app
[request]
(let [{:keys [uri]} request]
(case uri
"/" (page-index request)
"/hello" (page-hello request)
(page-404 request))))
((
AB
let webApp =
choose [
route "/ping" >=> text "pong"
route "/" >=> htmlFile "/pages/index.html" ]
(defn app
[request]
(let [{:keys [uri]} request]
(case uri
"/" (page-index request)
"/hello" (page-hello request)
(page-404 request))))
AN
AB
AN
A
((
AB
((
Could not compile dependency :cowboy, \"escript.exe
вот такая ошибка. Я гуглил, но ничего не нашёл толкового. Не знаешь случаем что с этим сделать можно?AB
Could not compile dependency :cowboy, \"escript.exe
вот такая ошибка. Я гуглил, но ничего не нашёл толкового. Не знаешь случаем что с этим сделать можно?((
AN
AB
AN
((
AN
((