clientRoutes :: Notifier -> AppState -> ScottyM ()
clientRoutes notify state = do
  post "/client/csr"          $ handlePostCSR notify state
  get  "/client/csr/:csrid"   $ handlePollCSRState state
  get  "/client/cert/:fcertid" $ handleGetCertificate state

-- | Routes for administrators accessible under /admin
--   These routes should be protected with client-certificate checks. Refer to
--   the provided nginx configuration for an example.
clientRoutes :: Notifier -> AppState -> ScottyM ()
clientRoutes notify state = do
  post "/client/csr"          $ handlePostCSR notify state
  get  "/client/csr/:csrid"   $ handlePollCSRState state
  get  "/client/cert/:fcertid" $ handleGetCertificate state

-- | Routes for administrators accessible under /admin
--   These routes should be protected with client-certificate checks. Refer to
--   the provided nginx configuration for an example.
clientRoutes notify state = do
  post "/client/csr"          $ handlePostCSR notify state
  get  "/client/csr/:csrid"   $ handlePollCSRState state
  get  "/client/cert/:fcertid" $ handleGetCertificate state

-- | Routes for administrators accessible under /admin
--   These routes should be protected with client-certificate checks. Refer to
--   the provided nginx configuration for an example.