MCPcopy Create free account
hub / github.com/SignTools/SignTools / getLastJob

Function getLastJob

main.go:434–441  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

432}
433
434func getLastJob(c echo.Context) error {
435 if err := storage.Jobs.TakeLastJob(c.Response()); errors.Is(err, storage.ErrNotFound) {
436 return c.NoContent(404)
437 } else if err != nil {
438 return err
439 }
440 return c.NoContent(200)
441}
442
443func render2FAPage(c echo.Context, _ storage.App) error {
444 return c.HTML(200, assets.TwoFactorHtml)

Callers

nothing calls this directly

Calls 1

TakeLastJobMethod · 0.80

Tested by

no test coverage detected