Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

453 B
Raw Blame
export function buildRunLogsPath(runKind, runId, afterId = null) {
    const kind = encodeURIComponent(String(runKind));
    const id = encodeURIComponent(String(runId));
    const suffix = afterId == null ? '' : `?after_id=${encodeURIComponent(String(afterId))}`;
    return `/runs/${kind}/${id}/logs${suffix}`;
}

export async function getRunLogs(runKind, runId, afterId = null) {
    return this.request(buildRunLogsPath(runKind, runId, afterId));
}