api/security: implement api keys as method of authentication

This commit is contained in:
dumbmoron
2024-10-04 14:58:56 +00:00
parent 4317b128a8
commit 741dfd40f5
7 changed files with 273 additions and 4 deletions

View File

@@ -5,12 +5,19 @@ function t(color, tt) {
export function Bright(tt) {
return t("\x1b[1m", tt)
}
export function Red(tt) {
return t("\x1b[31m", tt)
}
export function Green(tt) {
return t("\x1b[32m", tt)
}
export function Cyan(tt) {
return t("\x1b[36m", tt)
}
export function Yellow(tt) {
return t("\x1b[93m", tt)
}