lib/generators/templates/initializer.rb in grape_resource-0.1.3 vs lib/generators/templates/initializer.rb in grape_resource-0.1.5

- old
+ new

@@ -2,6 +2,13 @@ # Directory to create endpoint config.directory = "controllers/API/v1/" # Class name prefix config.class_name_prefix = "API::V1" -end \ No newline at end of file + + # Entry point routes + config.entry_point_routes = "# Routes entry point" + + # Formatter + config.success_formatter = "formatter :json, ::API::SuccessFormatter" + config.error_formatter = "error_formatter :json, ::API::ErrorFormatter" +end