forked from fwew/fwew.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.ts
28 lines (27 loc) · 1.23 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const API_BASE = 'https://tirea.learnnavi.org/api'
export const endpoints = {
fwew_url: `${API_BASE}/fwew/{nav}`,
fwew_1d_url: `${API_BASE}/fwew-1d/{nav}`,
fwew_simple_url: `${API_BASE}/fwew-simple/{nav}`,
fwew_reverse_url: `${API_BASE}/fwew/r/{lang}/{local}`,
fwew_1d_reverse_url: `${API_BASE}/fwew-1d/r/{lang}/{local}`,
search_url: `${API_BASE}/search/{lang}/{words}`,
list_url: `${API_BASE}/list`,
list_filter_url: `${API_BASE}/list/{args}`,
random_url: `${API_BASE}/random/{n}`,
random_filter_url: `${API_BASE}/random/{n}/{args}`,
number_to_navi_url: `${API_BASE}/number/r/{num}`,
navi_to_number_url: `${API_BASE}/number/{word}`,
lenition_url: `${API_BASE}/lenition`,
version_url: `${API_BASE}/version`,
name_single_url: `${API_BASE}/name/single/{n}/{s}/{dialect}`,
name_full_url: `${API_BASE}/name/full/{ending}/{n}/{s1}/{s2}/{s3}/{dialect}`,
name_alu_url: `${API_BASE}/name/alu/{n}/{s}/{nm}/{am}/{dialect}`,
homonyms_url: `${API_BASE}/homonyms`,
oddballs_url: `${API_BASE}/oddballs`,
multi_ipa_url: `${API_BASE}/multi-ipa`,
dict_len_url: `${API_BASE}/total-words/{lang}`,
reef_ipa_url: `${API_BASE}/reef/{i}`,
validity_url: `${API_BASE}/valid/{i}`,
phonemes_url: `${API_BASE}/phonemedistros/{lang}`,
}