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
commit15c533eb324526776f4a8a9d82b150dbfd46d7e6 (patch)
treea80b0b565d55e60db1468a45218d5b8f4012c871 /Timeline/Startup.cs
parentce13fcc16987cb9c25b07f94388093b6e9fd2290 (diff)
downloadtimeline-15c533eb324526776f4a8a9d82b150dbfd46d7e6.tar.gz
timeline-15c533eb324526776f4a8a9d82b150dbfd46d7e6.tar.bz2
timeline-15c533eb324526776f4a8a9d82b150dbfd46d7e6.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());