palate 0.3.9

File type detection combining tft and hyperpolyglot
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
	}
}