Server API v1 #1

Merged
luke merged 30 commits from development into main 2024-05-04 20:22:45 +00:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit b0cedf2866 - Show all commits

View File

@ -1,9 +1,10 @@
// SPDX-License-Identifier: GPL-3.0-Only
// Copyright (C) 2024 Luke Harding
use std::env;
use actix_web::{App, get, HttpResponse, HttpServer, Responder};
use crate::util::warn_println;
mod util;
#[actix_web::main]
@ -19,7 +20,7 @@ async fn main() -> std::io::Result<()> {
if let Ok(env_port) = env_port.parse::<u16>() {
port = env_port;
} else {
warn_println("Failed to parse PORT env variable using default value.");
util::warn_println("Failed to parse PORT env variable using default value.");
}
}

View File

@ -1,3 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-Only
// Copyright (C) 2024 Luke Harding
use colored::Colorize;
pub fn print_copyright_notice() {