001package jmri.server.web.app;
002
003import java.util.HashMap;
004import java.util.Map;
005import jmri.server.web.AbstractWebServerConfiguration;
006import jmri.server.web.spi.WebServerConfiguration;
007import org.openide.util.lookup.ServiceProvider;
008
009/**
010 * Provide default paths to the Angular JMRI web application.
011 *
012 * @author Randall Wood (C) 2016
013 */
014@ServiceProvider(service = WebServerConfiguration.class)
015public class WebAppConfiguration extends AbstractWebServerConfiguration {
016
017    /**
018     * Get paths for static content that would otherwise be handled by the
019     * {@link jmri.server.web.app.WebAppServlet }.
020     *
021     * {@inheritDoc }
022     */
023    @Override
024    public Map<String, String> getFilePaths() {
025        HashMap<String, String> map = new HashMap<>();
026        map.put("/app/node_modules", "program:web/app/node_modules"); // NOI18N
027        map.put("/app/app", "program:web/app/app"); // NOI18N
028        map.put("/app/short-detector", "program:web/app/short-detector"); // NOI18N
029        return map;
030    }
031
032}