All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.espr.mvc.route.StaticResourcesRoute Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package it.espr.mvc.route;

import it.espr.mvc.response.Forward;

public class StaticResourcesRoute {

	public static final String BASE_DIR = "/static/";

	public Forward get(String path) {
		Forward forward = new Forward();
		forward.path = BASE_DIR;
		if (path == null || "".equals(path)) {
			forward.path += "index.html";
		} else {
			forward.path += path;
		}
		return forward;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy