@@ -0,0 +1,811 @@
+package com.royalrangers.controller;%0A%0Aimport com.royalrangers.security.JwtUser;%0Aimport org.springframework.security.access.prepost.PreAuthorize;%0Aimport org.springframework.security.core.context.SecurityContextHolder;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0A@RequestMapping(%22/user%22)%0Apublic class UserDetailController %7B%0A%0A    @RequestMapping(method = RequestMethod.GET)%0A    @PreAuthorize(%22isAuthenticated()%22)%0A    public @ResponseBody JwtUser getUser() %7B%0A%0A        JwtUser user = (JwtUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();%0A        return user;%0A    %7D%0A%7D%0A

Add service that returns information about the user (for testing)