2019-01-14 16:20:48 +00:00
|
|
|
(ns john-titor.commands
|
|
|
|
(:require
|
|
|
|
[john-titor.commands.protocols :as impl]
|
2019-03-19 21:06:04 +00:00
|
|
|
[john-titor.commands.echo :as echo]
|
|
|
|
[john-titor.commands.github :as github]))
|
2019-01-14 16:20:48 +00:00
|
|
|
|
|
|
|
(defn router
|
|
|
|
[server]
|
2019-03-19 21:06:04 +00:00
|
|
|
(impl/init (echo/->EchoCommand) server)
|
|
|
|
(impl/init (github/->GithubCommandRouter) server))
|