This commit is contained in:
2024-05-05 19:44:43 +10:00
parent 0a147fb8f4
commit 5041f7d0e1
4 changed files with 21 additions and 7 deletions

View File

@@ -23,4 +23,23 @@
<Content Include="sass\core.sass" />
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\scripts\htmx.min.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="wwwroot\scripts\index.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="wwwroot\scripts\json-enc.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="wwwroot\styles\core.css.map" />
</ItemGroup>
<ItemGroup>
<Content Update="wwwroot\styles\core.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

View File

@@ -2,6 +2,7 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ActiveDebugProfile>http</ActiveDebugProfile>
<NameOfLastUsedPublishProfile>C:\Users\dredgy\RiderProjects\AirportAlphabetGame\AirportAlphabetGame\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>

View File

@@ -7,10 +7,6 @@ open Types
module Program =
let pipeline = pipeline {
use_warbler
}
let router = router {
not_found_handler (setStatusCode 404 >=> text "404")
get "/" ( (View.index [||]) |> htmlView)
@@ -23,7 +19,6 @@ module Program =
}
let ServiceConfig (services: IServiceCollection) = services.AddHttpContextAccessor()
let ipAddress = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList[2];
let app =
application {
use_mime_types [(".woff", "application/font-woff")]
@@ -34,5 +29,4 @@ module Program =
url "http://*:5001"
}
app.Properties["host.AppMode"] <- "development"
run app

View File

@@ -1,4 +1,4 @@
module View
module View
open System
open Htmx