Browse Source

update mofuw (#3882)

* change json module

* add nimble install packedjson
momf 7 years ago
parent
commit
ef15fde88e
2 changed files with 3 additions and 3 deletions
  1. 1 1
      frameworks/Nim/mofuw/mofuw.dockerfile
  2. 2 2
      frameworks/Nim/mofuw/techempower.nim

+ 1 - 1
frameworks/Nim/mofuw/mofuw.dockerfile

@@ -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

+ 2 - 2
frameworks/Nim/mofuw/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)