Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added non-generic JsonResponse

  • Loading branch information...
commit 525fbbe46925f809f181de1e28fdba302b06ec56 1 parent 3505dff
@markrendle markrendle authored
Showing with 8 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +7 −0 src/Nancy/Responses/JsonResponse.cs
View
1  .gitignore
@@ -16,3 +16,4 @@ build/
[Oo]bj/
[Rr]elease/
_[Rr]e[Ss]harper.*/
+*.docstates
View
7 src/Nancy/Responses/JsonResponse.cs
@@ -28,4 +28,11 @@ private static Action<Stream> GetJsonContents(TModel model)
};
}
}
+
+ public class JsonResponse : JsonResponse<object>
+ {
+ public JsonResponse(object model) : base(model)
+ {
+ }
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.