25 lines
975 B
Plaintext
25 lines
975 B
Plaintext
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<configuration>
|
||
|
<system.webServer>
|
||
|
<staticContent>
|
||
|
<remove fileExtension=".json" />
|
||
|
<mimeMap fileExtension=".json" mimeType="application/json" />
|
||
|
<mimeMap fileExtension="woff" mimeType="application/font-woff" />
|
||
|
<mimeMap fileExtension="woff2" mimeType="application/font-woff" />
|
||
|
</staticContent>
|
||
|
<!-- IIS URL Rewrite for Angular routes -->
|
||
|
<rewrite>
|
||
|
<rules>
|
||
|
<rule name="Angular Routes" stopProcessing="true">
|
||
|
<match url=".*" />
|
||
|
<conditions logicalGrouping="MatchAll">
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
|
||
|
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
|
||
|
</conditions>
|
||
|
<action type="Rewrite" url="/" />
|
||
|
</rule>
|
||
|
</rules>
|
||
|
</rewrite>
|
||
|
</system.webServer>
|
||
|
</configuration>
|