- Introduced user registration
- Now using Spring Boot for classloading, this way local development does not need to restart the complete server - Fixed all kinds of dependencies on the names of the lessons necessary to keep in mind during the creation of a lesson. - Simplied loading of resources, by adding resource mappings in MvcConfig. - Refactored plugin loading, now only one class is left for loading the lessons.
This commit is contained in:
@ -25,35 +25,10 @@
|
||||
|
||||
package org.owasp.webgoat.assignments;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.actuate.endpoint.mvc.MvcEndpoint;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public abstract class Endpoint implements MvcEndpoint {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("pluginTargetDirectory")
|
||||
private File pluginDirectory;
|
||||
|
||||
/**
|
||||
* The directory of the plugin directory in which the lessons resides, so if you want to access the lesson 'ClientSideFiltering' you will
|
||||
* need to:
|
||||
*
|
||||
* <code>
|
||||
* File lessonDirectory = new File(getPluginDirectory(), "ClientSideFiltering");
|
||||
* </code>
|
||||
*
|
||||
* The directory structure of the lesson is exactly the same as the directory structure in the plugins project.
|
||||
*
|
||||
* @return the top level
|
||||
*/
|
||||
protected File getPluginDirectory() {
|
||||
return new File(this.pluginDirectory, "plugin");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public final boolean isSensitive() {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user