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"