MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / update

Function update

app/static/js/controllers.js:129–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129export async function update() {
130 return fetch("/api/update", {
131 method: "PUT",
132 headers: {
133 "X-CSRFToken": getCsrfToken(),
134 },
135 mode: "same-origin",
136 cache: "no-cache",
137 redirect: "error",
138 }).then(processJsonResponse);
139}
140
141export async function getUpdateStatus() {
142 return fetch("/api/update", {

Callers

nothing calls this directly

Calls 1

getCsrfTokenFunction · 0.85

Tested by

no test coverage detected