kukkubukku/controller/backend.sh
2022-03-30 20:41:59 +02:00

12 lines
257 B
Bash

#!/bin/bash
route GET "/backend" backendHome
backendHome() {
requireLoggedIn
htmlContent
endHeaders
title="Backend"
content="$(getRecipesByUsername "$username" | template "templates/backend.fragment.templ")"
template "templates/layout.html.templ"
}