Permalink
Browse files

Make SwaggerSupport inherit CorsSupport so it works from swagger-ui

  • Loading branch information...
1 parent d801b82 commit 2a1061ba5a0faebd2f9f7dc081c5e3026e7abbb2 @casualjim casualjim committed Oct 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 swagger/src/main/scala/org/scalatra/swagger/SwaggerSupport.scala
@@ -11,7 +11,7 @@ import grizzled.slf4j.Logger
/**
* Provides the necessary support for adding documentation to your routes.
*/
-trait SwaggerSupport extends Initializable { self: ScalatraBase =>
+trait SwaggerSupport extends Initializable with CorsSupport { self: ScalatraBase =>
protected implicit def swagger: Swagger

0 comments on commit 2a1061b

Please sign in to comment.