package foodtruck.server;

import com.google.inject.Provides;
import com.google.inject.name.Named;
import com.google.inject.servlet.ServletModule;

import org.joda.time.DateTimeZone;

import foodtruck.model.Location;

/**
 * @author aviolette
 * @since Jul 12, 2011
 */
public class FoodtruckServletModule extends ServletModule {
  @Override
  protected void configureServlets() {
    serve("/cron/recache").with(FoodTruckUpdaterServlet.class);
    serve("/*").with(FoodTruckServlet.class);
  }

  @Provides
  public DateTimeZone provideDefaultZone() {
    return DateTimeZone.forID("America/Chicago");
  }

  @Provides @Named("center")
  public Location provideMapCenter() {
    return new Location(41.8781136, -87.6297982);
  }
}

@@ -447,19 +447,29 @@
    serve
-(%22/
+Regex(%22/%5B%5C%5Cw%5D
 *%22).with

Add regex expression for food truck query so that admin servlet can be reached on dev server.