GUACAMOLE-131: Migrate to Webjars for JavaScript library dependencies. Upgrade messageformat.js to 1.0.2, which is now MIT-licensed.
This commit is contained in:
1 parent
84a6dc8c48
commit
9175ebf5d0
93 files changed
+140
-17235
No files matched your search
@@ -43,6 +43,7 @@ import org.apache.guacamole.rest.sharingprofile.SharingProfileModule;
|
||||
import org.apache.guacamole.rest.tunnel.TunnelCollectionResourceFactory;
|
||||
import org.apache.guacamole.rest.tunnel.TunnelResourceFactory;
|
||||
import org.apache.guacamole.rest.user.UserModule;
|
||||
import org.webjars.servlet.WebjarsServlet;
|
||||
|
||||
/**
|
||||
* A Guice Module to set up the servlet mappings and authentication-specific
|
||||
@@ -109,6 +110,10 @@ public class RESTServiceModule extends ServletModule {
|
||||
bind(JacksonJsonProvider.class).in(Scopes.SINGLETON);
|
||||
serve("/api/*").with(GuiceContainer.class);
|
||||
|
||||
// Serve Webjar JavaScript dependencies
|
||||
bind(WebjarsServlet.class).in(Scopes.SINGLETON);
|
||||
serve("/webjars/*").with(WebjarsServlet.class);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user