Configurable port
This commit is contained in:
		
							parent
							
								
									6b12525d62
								
							
						
					
					
						commit
						99124a8d54
					
				@ -4,7 +4,11 @@ import static spark.Spark.*;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public class Server {
 | 
					public class Server {
 | 
				
			||||||
    public static void main(String[] args) {
 | 
					    public static void main(String[] args) {
 | 
				
			||||||
 | 
					        if (args.length >= 1) {
 | 
				
			||||||
 | 
					            port(Integer.parseInt(args[0]));
 | 
				
			||||||
 | 
					        } else {
 | 
				
			||||||
            port(8080);
 | 
					            port(8080);
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        get("/rickrollprot/check/:link", new CheckRoute());
 | 
					        get("/rickrollprot/check/:link", new CheckRoute());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user