chore: add worldState endpoint for U39.1
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (pull_request) Successful in 1m41s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (pull_request) Successful in 1m41s
				
			U39.1 wants world state from `/worldState.php` not from `/dynamic/worldState.php` as before. Before bootstrapper update you need to replace `/static/data/buildConfig.json` to match latest version.
This commit is contained in:
		
							parent
							
								
									78b8cf4c77
								
							
						
					
					
						commit
						8eebd7ae5d
					
				@ -13,6 +13,8 @@ import { payRouter } from "./routes/pay.ts";
 | 
				
			|||||||
import { statsRouter } from "./routes/stats.ts";
 | 
					import { statsRouter } from "./routes/stats.ts";
 | 
				
			||||||
import { webuiRouter } from "./routes/webui.ts";
 | 
					import { webuiRouter } from "./routes/webui.ts";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { worldStateController } from "./controllers/dynamic/worldStateController.ts";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const app = express();
 | 
					const app = express();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
app.use((req, _res, next) => {
 | 
					app.use((req, _res, next) => {
 | 
				
			||||||
@ -45,6 +47,9 @@ app.use("/pay", payRouter);
 | 
				
			|||||||
app.use("/stats", statsRouter);
 | 
					app.use("/stats", statsRouter);
 | 
				
			||||||
app.use("/", webuiRouter);
 | 
					app.use("/", webuiRouter);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// U39.1+ gets worldState from that location
 | 
				
			||||||
 | 
					app.get("/worldState.php", worldStateController);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
app.use(unknownEndpointHandler);
 | 
					app.use(unknownEndpointHandler);
 | 
				
			||||||
app.use(errorHandler);
 | 
					app.use(errorHandler);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user