Server API v1 #1

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

View File

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE tasks;

View File

@ -0,0 +1,7 @@
-- Your SQL goes here
CREATE TABLE IF NOT EXISTS tasks (
id UUID PRIMARY KEY,
title TEXT NOT NULL,
description TEXT NOT NULL,
complete BOOLEAN NOT NULL DEFAULT FALSE
);

View File

@ -25,7 +25,7 @@ async fn main() -> std::io::Result<()> {
if let Ok(env_port) = env_port.parse::<u16>() {
port = env_port;
} else {
util::warn_println("Failed to parse PORT env variable using default value.");
util::warn_println("Failed to parse PORT env variable; using default value.");
}
}