Class PwaPushSubscriptionRest

java.lang.Object
io.meeds.pwa.rest.PwaPushSubscriptionRest

@RestController @RequestMapping("subscriptions") public class PwaPushSubscriptionRest extends Object
  • Constructor Details

    • PwaPushSubscriptionRest

      public PwaPushSubscriptionRest()
  • Method Details

    • subscribe

      @PostMapping @Secured("users") public void subscribe(org.springframework.web.context.request.WebRequest request, @RequestBody UserPushSubscription subscription)
    • unsubscribe

      @DeleteMapping @Secured("users") public void unsubscribe(org.springframework.web.context.request.WebRequest request, @RequestBody UserPushSubscription subscription)
    • getDeviceType

      public String getDeviceType(org.springframework.web.context.request.WebRequest request)