* change json module * add nimble install packedjson
@@ -15,7 +15,7 @@ RUN apt update -yqq && \
ENV PATH $PATH:/nim/nim-devel/bin:/root/.nimble/bin
-RUN nimble install -y mofuw
+RUN nimble install -y mofuw packedjson
WORKDIR /mofuwApp
COPY techempower.nim techempower.nim
@@ -1,4 +1,4 @@
-import mofuw, json
+import mofuw, packedjson
proc h(req: mofuwReq, res: mofuwRes) {.async.} =
case req.getPath
@@ -9,4 +9,4 @@ proc h(req: mofuwReq, res: mofuwRes) {.async.} =
else:
mofuwResp(HTTP404, "text/plain", "NOT FOUND")
-h.mofuwRun(port = 8080)
+h.mofuwRun(port = 8080)