From d527c3b46759bf9b0452e6b763a6eb34fc3e813d Mon Sep 17 00:00:00 2001 From: Isaac Abraham Date: Wed, 23 May 2018 19:05:21 +0200 Subject: [PATCH] Remove configure app. --- Content/src/Server/ServerSaturn.fs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Content/src/Server/ServerSaturn.fs b/Content/src/Server/ServerSaturn.fs index e5d5c34a..ee9e6f4c 100644 --- a/Content/src/Server/ServerSaturn.fs +++ b/Content/src/Server/ServerSaturn.fs @@ -35,6 +35,7 @@ let webApp = remoting server { use_route_builder Route.builder } + #else let webApp = scope { get "/api/init" (fun next ctx -> @@ -43,29 +44,25 @@ let webApp = scope { return! Successful.OK counter next ctx }) } -#endif +#endif #if (!remoting) let configureSerialization (services:IServiceCollection) = let fableJsonSettings = Newtonsoft.Json.JsonSerializerSettings() fableJsonSettings.Converters.Add(Fable.JsonConverter()) services.AddSingleton(NewtonsoftJsonSerializer fableJsonSettings) -#endif +#endif #if (deploy == "azure") let configureAzure (services:IServiceCollection) = tryGetEnv "APPINSIGHTS_INSTRUMENTATIONKEY" |> Option.map services.AddApplicationInsightsTelemetry |> Option.defaultValue services -#endif - -let configureApp (app:IApplicationBuilder) = - app.UseDefaultFiles() +#endif let app = application { url ("http://0.0.0.0:" + port.ToString() + "/") router webApp - app_config configureApp memory_cache use_static publicPath #if (!remoting)