aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/OptionsController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-27 13:35:50 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-27 13:35:50 -0600
commit3b467854506556248350aaecba319cca35a7ab92 (patch)
tree2a55cbdab0700571e87aa285fde3ee644f6afaed /src/slskd/Core/API/Controllers/OptionsController.cs
parent35b057d4a8ccddbbe5d4385f8829fef78c76e233 (diff)
downloadslskd-3b467854506556248350aaecba319cca35a7ab92.tar.gz
add an endpoint to retreive the location of the yaml file
Diffstat (limited to 'src/slskd/Core/API/Controllers/OptionsController.cs')
-rw-r--r--src/slskd/Core/API/Controllers/OptionsController.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs
index b4626cb9..60237878 100644
--- a/src/slskd/Core/API/Controllers/OptionsController.cs
+++ b/src/slskd/Core/API/Controllers/OptionsController.cs
@@ -75,6 +75,14 @@ namespace slskd.Core.API
[HttpGet]
[Authorize]
+ [Route("yaml/location")]
+ public IActionResult GetYamlFileLocation()
+ {
+ return Ok(Program.ConfigurationFile);
+ }
+
+ [HttpGet]
+ [Authorize]
[Route("yaml")]
public IActionResult GetYamlFile()
{