Public Access
feat: token-authenticated approval API + structured webhook payload #4
+2
-2
@@ -65,7 +65,7 @@ fn main() {
|
|||||||
if users.is_empty() {
|
if users.is_empty() {
|
||||||
println!("No users.");
|
println!("No users.");
|
||||||
} else {
|
} else {
|
||||||
println!("{:<20} {}", "Username", "Created");
|
println!("{:<20} Created", "Username");
|
||||||
println!("{}", "-".repeat(40));
|
println!("{}", "-".repeat(40));
|
||||||
for (u, c) in users {
|
for (u, c) in users {
|
||||||
println!("{:<20} {}", u, c);
|
println!("{:<20} {}", u, c);
|
||||||
@@ -115,7 +115,7 @@ fn main() {
|
|||||||
if keys.is_empty() {
|
if keys.is_empty() {
|
||||||
println!("No API keys.");
|
println!("No API keys.");
|
||||||
} else {
|
} else {
|
||||||
println!("{:<20} {}", "Label", "Created");
|
println!("{:<20} Created", "Label");
|
||||||
println!("{}", "-".repeat(40));
|
println!("{}", "-".repeat(40));
|
||||||
for (l, c) in keys {
|
for (l, c) in keys {
|
||||||
println!("{:<20} {}", l, c);
|
println!("{:<20} {}", l, c);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ pub struct SubmitAction {
|
|||||||
pub run_as: Option<String>,
|
pub run_as: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub struct ActionResult {
|
pub struct ActionResult {
|
||||||
|
|||||||
Reference in New Issue
Block a user