My angular.js files aren't being found when making a get request. All of the other folders are being found and the js folder is in the same package. Here is my asset module class:
package WebModules;
import org.jooby.Jooby;
import org.jooby.Results;
/**
*
* @author Karl Shipley
*/
public class AssetModule extends Jooby {
public AssetModule() {
assets("/*.html");
assets("/css/*.css");
assets("/js/*.js");
assets("/images/*.png");
assets("/images/*.jpg");
// make index.html the default page
assets("/", "index.html");
// prevent 404 errors due to browsers requesting favicons
get("/favicon.ico", () -> Results.noContent());
}
}
Error: 14:44:32 ERROR org.jooby.Err - execution of: GET/js resulted in exception Route: | Method | Path | Source | Name | Pattern | Consumes | Produces | |--------|------|----------|------|---------|----------|-------------------------------| | GET | /js | ~builtin | err | /js | [/] | [application/javascript, /] |
Stacktrace: org.jooby.Err: Not Found(404): /js
Aucun commentaire:
Enregistrer un commentaire