- Timestamp:
- Sep 22, 2014, 11:15:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Web/Web.cs
r190 r199 34 34 } 35 35 36 handlers.Add ("/index.htm", new SimpleRedirectHandler ("/static/index.html")); 37 handlers.Add ("/static/", new StaticHandler ("/static/", Application.dataPath + "/../webserver", false/*true*/, true)); // TODO: Enable cache 38 handlers.Add ("/map/", new StaticHandler ("/map/", StaticDirectories.GetSaveGameDir () + "/map", false, false)); 36 handlers.Add ( 37 "/index.htm", 38 new SimpleRedirectHandler ("/static/index.html")); 39 handlers.Add ( 40 "/static/", 41 new StaticHandler ( 42 "/static/", 43 Application.dataPath + "/../webserver", 44 new AllocsFixes.FileCache.DirectAccess (), 45 true) 46 ); // TODO: Enable cache 47 handlers.Add ( 48 "/map/", 49 new StaticHandler ( 50 "/map/", 51 StaticDirectories.GetSaveGameDir () + "/map", 52 MapRendering.MapRendering.Instance.TileCache, 53 false) 54 ); 39 55 handlers.Add ("/api/", new ApiHandler ("/api/")); 40 56 … … 61 77 ); 62 78 63 NetTelnetServer.RegisterServer (this);79 NetTelnetServer.RegisterServer (this); 64 80 65 81
Note:
See TracChangeset
for help on using the changeset viewer.