Browse Source

remove old swagger_ui view

Guénaël Muller 6 years ago
parent
commit
9f5b82672f
1 changed files with 0 additions and 16 deletions
  1. 0 16
      tracim/views/default/default_controller.py

+ 0 - 16
tracim/views/default/default_controller.py View File

@@ -42,12 +42,6 @@ class DefaultController(Controller):
42 42
             exception=exception
43 43
         )
44 44
 
45
-    def swagger_doc(self, request: TracimRequest):
46
-        return hapic.generate_doc(
47
-                title='Tracim v2 API',
48
-                description='API of Tracim v2',
49
-        )
50
-
51 45
     def bind(self, configurator: Configurator):
52 46
         configurator.add_view(
53 47
             self.notfound_view,
@@ -59,13 +53,3 @@ class DefaultController(Controller):
59 53
             renderer='json',
60 54
             context=Exception,
61 55
         )
62
-        configurator.add_route(
63
-            'swagger_doc',
64
-            '/swagger_doc',
65
-            request_method='GET',
66
-        )
67
-        configurator.add_view(
68
-            self.swagger_doc,
69
-            route_name='swagger_doc',
70
-            renderer='json',
71
-        )