Commit a00812ff authored by bow's avatar bow
Browse files

Redirect root to UI docs instead of specs

parent 9f8bbb62
......@@ -49,8 +49,8 @@ class RootControllerSpec extends SentinelServletSpec with Mockito {
priorResponse.status mustEqual 301
}
"redirect to /api-spec" in {
priorResponse.header("Location") must endWith("/api-spec")
"redirect to /api-docs" in {
priorResponse.header("Location") must endWith("/api-docs")
}
"return an empty body" in {
......
......@@ -36,9 +36,9 @@ class RootController extends ScalatraServlet
response.setHeader("Access-Control-Allow-Methods", "GET,HEAD")
}
/** Root endpoint, which permanently redirects to our specification. */
/** Root endpoint, which permanently redirects to our documentation. */
get("/") {
contentType = formats("json")
halt(status = 301, headers = Map("Location" -> "/api-spec"))
halt(status = 301, headers = Map("Location" -> "/api-docs"))
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment