Author: Adam <git@apiote.xyz>
todo comments
server2.sh | 4 ++++ todo | 4 ++++
diff --git a/server2.sh b/server2.sh index 0560d5693673c8683fb97ccbb0838d4a0b9cab08..a1c7d11d6055660f24eafd1f1307517eca234eee 100755 --- a/server2.sh +++ b/server2.sh @@ -30,6 +30,7 @@ # Configure in accordance with your environment nc=$(command -v nc) || true +# todo mktmp pid_file=/tmp/$program.pid slashes() { @@ -225,6 +226,9 @@ respond500 "error while creating $toy" else respond202 "$toy" "$item" fi + + # todo delete old items, leave 1 stable, 1 errored + ;; DELETE) check_auth "$authorization" || return diff --git a/todo b/todo index 7ac3495f0ad0fe3b8ac305e72692f4254c529d77..e7f6f0c6c00fd33df83e5a88a4ba627859473fa1 100644 --- a/todo +++ b/todo @@ -6,5 +6,9 @@ GET /toys/$name => html list of toy's items GET /toys/$name/$id #Accept: (text/html | image/png |image/*webp | image/avif | text/plain) => logs of item +DELETE /toys/$name/$id + => stop build +GET /toys/$name/$id/$artifact_name + => artifact by name container gets ARG $number and must put artifact in ~/toys/$name/$number/