Ejemplo n.º 1
0
 def as_view(cls, **initkwargs):
     # Enable CORS
     view = super(TriggerRuleMatchViewAPI, cls).as_view(**initkwargs)
     return cors_enabled('*', methods=['POST'])(view)
Ejemplo n.º 2
0
 def as_view(cls, *args, **kwargs):
     view = super(FeedbackHistogramAPI, cls).as_view(*args, **kwargs)
     view = cors_enabled('*', methods=['GET'])(view)
     return view
Ejemplo n.º 3
0
 def as_view(cls, **initkwargs):
     # Enable CORS
     view = super(HeartbeatV2API, cls).as_view(**initkwargs)
     return cors_enabled('*', methods=['POST'])(view)
Ejemplo n.º 4
0
 def as_view(cls, **initkwargs):
     # Enable CORS
     view = super(HeartbeatV2API, cls).as_view(**initkwargs)
     return cors_enabled('*', methods=['POST'])(view)
Ejemplo n.º 5
0
 def as_view(cls, *args, **kwargs):
     view = super(FeedbackHistogramAPI, cls).as_view(*args, **kwargs)
     view = cors_enabled('*', methods=['GET'])(view)
     return view
Ejemplo n.º 6
0
 def as_view(cls, **initkwargs):
     # Enable CORS
     view = super(TriggerRuleMatchViewAPI, cls).as_view(**initkwargs)
     return cors_enabled("*", methods=["POST"])(view)