mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
11 lines
288 B
JavaScript
11 lines
288 B
JavaScript
|
import { getJSON } from '../../../infrastructure/fetch-json'
|
||
|
|
||
|
export function fetchWordCount(projectId, clsiServerId, options) {
|
||
|
let query = ''
|
||
|
if (clsiServerId) {
|
||
|
query = `?clsiserverid=${clsiServerId}`
|
||
|
}
|
||
|
|
||
|
return getJSON(`/project/${projectId}/wordcount${query}`, options)
|
||
|
}
|