mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	* Add ".es" to recognised JavaScript extensions * Add heuristic to differentiate Erlang from ECMAScript * Add test-case for .es heuristic
		
			
				
	
	
		
			14 lines
		
	
	
		
			285 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			285 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import axios from "axios";
 | 
						|
 | 
						|
export default {
 | 
						|
	async getIndex(prefix) {
 | 
						|
		const {data} = await axios.get((prefix || "") + "/index.json");
 | 
						|
		return data;
 | 
						|
	},
 | 
						|
	
 | 
						|
	async getContent(path, prefix) {
 | 
						|
		const {data} = await axios.get((prefix || "") + "/" + path + ".json");
 | 
						|
		return data;
 | 
						|
	}
 | 
						|
}
 |