aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Startup.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-05-31 15:35:25 +0800
committercrupest <crupest@outlook.com>2020-05-31 15:35:25 +0800
commit635b5ea646ec55c7ae212f79031b69c00ad79763 (patch)
tree6697477582d8d710c3961daad0b22a533edddfb2 /Timeline/Startup.cs
parent590522661ba90ac388029c83d248e8277d2325f7 (diff)
downloadtimeline-635b5ea646ec55c7ae212f79031b69c00ad79763.tar.gz
timeline-635b5ea646ec55c7ae212f79031b69c00ad79763.tar.bz2
timeline-635b5ea646ec55c7ae212f79031b69c00ad79763.zip
Migrate to docker.
Diffstat (limited to 'Timeline/Startup.cs')
-rw-r--r--Timeline/Startup.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/Timeline/Startup.cs b/Timeline/Startup.cs
index b6c3ff7f..09281551 100644
--- a/Timeline/Startup.cs
+++ b/Timeline/Startup.cs
@@ -36,12 +36,6 @@ namespace Timeline
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- var workDir = Configuration.GetValue<string?>("WorkDir");
- if (workDir == null)
- {
- throw new InvalidOperationException("Please set a work directory first.");
- }
-
services.AddControllers(setup =>
{
setup.InputFormatters.Add(new StringInputFormatter());