first running version

This commit is contained in:
2018-10-23 00:41:44 +02:00
parent 7665e5c49c
commit e00f131cc9
4 changed files with 8 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ namespace tv7playlist.Controllers
{
[Route("api/playlist")]
[ApiController]
public class PlayListTV7Controller : ControllerBase
public class PlayListController : ControllerBase
{
private const string Tv7OriginUrl = "https://api.init7.net/tvchannels.m3u";
private const string UdpxyRootUrl = "http://tv1.haefelfinger.net:4022/udp";

View File

@@ -16,4 +16,7 @@ WORKDIR /app
COPY --from=build-env /app/out .
ENV ASPNETCORE_URLS=http://+:80
EXPOSE 80
ENTRYPOINT ["dotnet", "tv7playlist.dll"]

View File

@@ -21,7 +21,7 @@
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "api/values",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"applicationUrl": "http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

View File

@@ -25,7 +25,9 @@ namespace tv7playlist
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
services
.AddMvc()
.SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@@ -39,8 +41,6 @@ namespace tv7playlist
{
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseMvc();
}
}