File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ Expect that this API might change between now and any time this is released.
259
259
260
260
- API for adding examples
261
261
- API for adding comments
262
+ - Tests!
262
263
263
264
## See Also
264
265
Original file line number Diff line number Diff line change 10
10
[req]
11
11
{:status 404 :body (json/encode {:status 404 :message " Invalid request" })})
12
12
13
+ (defn error
14
+ " Response for API 500 errors"
15
+ [req]
16
+ {:status 500 :body (json/encode {:status 500
17
+ :message " There was an unknown error" })})
18
+
13
19
(defn search
14
20
" API implementation of searching, lib and namespace can be optionally
15
21
specified as paths, with name and query optionally specified in
75
81
76
82
#"^/_stats/?$" #'stats
77
83
78
- :404 #'missing))
84
+ :404 #'missing
85
+ :500 #'error))
79
86
80
87
(defn start-server []
81
88
(laeggen/start (assoc (config :laeggen ) :urls urls)))
You can’t perform that action at this time.
0 commit comments