From 051143abd0542ce7fa161c94c66b6b69967cc648 Mon Sep 17 00:00:00 2001 From: Max Nullov Date: Sun, 9 Feb 2025 16:58:07 +0300 Subject: [PATCH] Fixes and clearing --- .gitignore | 3 ++- WebApi.cs | 2 +- conf.toml | 8 -------- 3 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 conf.toml diff --git a/.gitignore b/.gitignore index c6688f4..38f95b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /bin /obj /.vscode -*.db \ No newline at end of file +*.db +*.conf \ No newline at end of file diff --git a/WebApi.cs b/WebApi.cs index e5aa89e..b68444d 100644 --- a/WebApi.cs +++ b/WebApi.cs @@ -39,7 +39,7 @@ namespace RestySqlite var group = app.MapGroup(handle); - group.MapGet($"{handle}/", async() => { return await repo.ListTables(); }); + group.MapGet("/", async() => { return await repo.ListTables(); }); group.MapGet("/{tableName}", async(string tableName) => { return await repo.ListColumns(tableName); }); diff --git a/conf.toml b/conf.toml deleted file mode 100644 index 0520ad1..0000000 --- a/conf.toml +++ /dev/null @@ -1,8 +0,0 @@ -title = "Configuration file for API" - -[api] -port = 5417 -handle = "api" - -[sql] -database = "test"