Return indication that plugins have been reloaded

This commit is contained in:
Nanne Baars 2015-09-22 21:13:41 +02:00
parent 6f8befd9a4
commit 87d196c427

View File

@ -59,9 +59,9 @@ public class PluginReloadService extends BaseService {
*/ */
@RequestMapping(value = "/reloadplugins.mvc") @RequestMapping(value = "/reloadplugins.mvc")
public @ResponseBody public @ResponseBody
ResponseEntity<Object> reloadPlugins(HttpSession session) { ResponseEntity<String> reloadPlugins(HttpSession session) {
WebSession webSession = (WebSession) session.getAttribute(WebSession.SESSION); WebSession webSession = (WebSession) session.getAttribute(WebSession.SESSION);
webSession.getCourse().loadLessonFromPlugin(session.getServletContext()); webSession.getCourse().loadLessonFromPlugin(session.getServletContext());
return new ResponseEntity<>(HttpStatus.OK); return new ResponseEntity("Plugins reload refresh the WebGoat page!",HttpStatus.OK);
} }
} }