The problem I have is that I can not access the endpoint of my api correctly, it always returns a 404 or 403. The api is mounted with slim on a iis 8 and the structure is as follows:
My web.config is located in /v1/Web.config (at the end of the project in the image) and its code is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rule" patternSyntax="Wildcard">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.phk" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
I need that when the user accesses the url link Go find the index.phk file inside the public folder, it does not matter if you call an endpoint or the root / v1, you should always go to find the index.phk file. Thank you for your attention.