jester icon indicating copy to clipboard operation
jester copied to clipboard

Confusion in settings block after routers

Open Xe opened this issue 4 years ago • 0 comments

This code doesn't work:

import asyncdispatch, jester

router api:
  get "/":
    resp Http200, "hi"

settings:
  port = Port(9001)

routes:
  extend api, "/api"

but this code does:

import asyncdispatch, jester

settings:
  port = Port(9001)

router api:
  get "/":
    resp Http200, "hi"

routes:
  extend api, "/api"

Xe avatar Aug 24 '19 20:08 Xe