diff options
Diffstat (limited to 'server/src/config.cpp')
| -rw-r--r-- | server/src/config.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/server/src/config.cpp b/server/src/config.cpp index 9231232..ec49aeb 100644 --- a/server/src/config.cpp +++ b/server/src/config.cpp | |||
| @@ -138,11 +138,12 @@ auto tag_invoke( | |||
| 138 | [](object_reader& r) -> rwgps | 138 | [](object_reader& r) -> rwgps |
| 139 | { | 139 | { |
| 140 | return { | 140 | return { |
| 141 | .api_key_filename = r.expect_at<std::string>("api_key_filename"), | 141 | .api_key_filename = |
| 142 | r.expect_at<std::filesystem::path>("api_key_filename"), | ||
| 142 | .api_secret_filename = | 143 | .api_secret_filename = |
| 143 | r.expect_at<std::string>("api_secret_filename"), | 144 | r.expect_at<std::filesystem::path>("api_secret_filename"), |
| 144 | .auth_token_filename = | 145 | .auth_token_filename = |
| 145 | r.expect_at<std::string>("auth_token_filename"), | 146 | r.expect_at<std::filesystem::path>("auth_token_filename"), |
| 146 | }; | 147 | }; |
| 147 | }); | 148 | }); |
| 148 | } | 149 | } |
| @@ -156,7 +157,8 @@ auto tag_invoke( | |||
| 156 | [](object_reader& r) -> situations | 157 | [](object_reader& r) -> situations |
| 157 | { | 158 | { |
| 158 | return { | 159 | return { |
| 159 | .datex2_filename = r.expect_at<std::string>("datex2_filename"), | 160 | .datex2_filename = |
| 161 | r.expect_at<std::filesystem::path>("datex2_filename"), | ||
| 160 | }; | 162 | }; |
| 161 | }); | 163 | }); |
| 162 | } | 164 | } |
| @@ -170,7 +172,10 @@ auto tag_invoke( | |||
| 170 | [](object_reader& r) -> database | 172 | [](object_reader& r) -> database |
| 171 | { | 173 | { |
| 172 | return { | 174 | return { |
| 173 | .sqlite3_filename = r.expect_at<std::string>("sqlite3_filename"), | 175 | .sqlite3_filename = |
| 176 | r.expect_at<std::filesystem::path>("sqlite3_filename"), | ||
| 177 | .migrations_dir = | ||
| 178 | r.expect_at<std::filesystem::path>("migrations_dir"), | ||
| 174 | }; | 179 | }; |
| 175 | }); | 180 | }); |
| 176 | } | 181 | } |