mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +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;
|
|
}
|
|
}
|