Compare commits
No commits in common. "cf297dc1cdd7baaf340781c0c13708cfd92b34b0" and "97f112c43420173fffa702384e92333a486da98e" have entirely different histories.
cf297dc1cd
...
97f112c434
|
@ -28,12 +28,6 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Program\Models\" />
|
<Folder Include="Program\Models\" />
|
||||||
<Folder Include="Program\ViewModels\" />
|
<Folder Include="Program\ViewModels\" />
|
||||||
<Folder Include="Program\Views\Academy\" />
|
|
||||||
<Folder Include="wwwroot\Resources\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Content Include="wwwroot\Resources\Images\.DS_Store" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|
14
Program.cs
|
@ -1,9 +1,6 @@
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
using Front;
|
using Front;
|
||||||
using Front.Program.Services;
|
|
||||||
|
|
||||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||||
|
|
||||||
|
@ -11,15 +8,6 @@ builder.RootComponents.Add<App>("#app");
|
||||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||||
|
|
||||||
// builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
// builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||||
builder.Services.AddScoped(sp => //new HttpClient
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:5144") });
|
||||||
{
|
|
||||||
// BaseAddress = new Uri("https://localhost:5144")
|
|
||||||
var config = builder.Configuration;
|
|
||||||
var http = new HttpClient();
|
|
||||||
return http;
|
|
||||||
});
|
|
||||||
|
|
||||||
// SCOPED 으로 등록된 서비스는 DI 컨테이너에 등록된 서비스의 인스턴스를 사용합니다.
|
|
||||||
builder.Services.AddScoped<APIService>();
|
|
||||||
|
|
||||||
await builder.Build().RunAsync();
|
await builder.Build().RunAsync();
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
namespace Front.Program.Services;
|
|
||||||
|
|
||||||
public class APIService
|
|
||||||
{
|
|
||||||
private readonly HttpClient _http;
|
|
||||||
|
|
||||||
public APIService(HttpClient http)
|
|
||||||
{
|
|
||||||
_http = http;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,6 +1,6 @@
|
||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
|
|
||||||
namespace Front.Program.Views.Project;
|
namespace Front.Program.Views.Academy;
|
||||||
|
|
||||||
public partial class Auth : ComponentBase
|
public partial class Auth : ComponentBase
|
||||||
{
|
{
|
|
@ -10,6 +10,6 @@
|
||||||
@using Front.Program.Layout
|
@using Front.Program.Layout
|
||||||
|
|
||||||
@using Front.Program.Views.Project
|
@using Front.Program.Views.Project
|
||||||
@* @using Front.Program.Views.Academy *@
|
@using Front.Program.Views.Academy
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 779 B |
Before Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 543 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 635 B |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 604 B |
Before Width: | Height: | Size: 505 B |
Before Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 535 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 945 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 716 B |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 1.3 MiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 830 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 811 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 120 KiB |
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"ApiBaseUrl": "https://devacamate.ipstein.myds.me/"
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"ApiBaseUrl": "https://acamate.ipstein.myds.me/"
|
|
||||||
}
|
|