Skip to content

Commit

Permalink
Merge pull request #25 from guscatalano/snshanka/neighborEviction
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
snehashankar authored Jul 24, 2019
2 parents 1ee4d7f + e6536f6 commit 561210e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WlihaHackEviction/Models/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ public class PermitInfo
[DataMember]
public string Location1 { get; set; }
}
}
}
8 changes: 7 additions & 1 deletion WlihaHackEviction/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public void ConfigureServices(IServiceCollection services)
// Configure the DBContext
services.AddDbContext<EvictionDatabaseContext>(options =>
options.UseSqlServer(connectionStringFromConfig));
//options.UseSqlServer(Configuration.GetConnectionString("SQLConnection")));

services.AddCors();

services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

Expand All @@ -52,7 +55,10 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)

app.UseSwagger();
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"));

app.UseCors(builder => builder
.SetIsOriginAllowed((origin) => { return true; }) // for now, allow any origin
.AllowAnyMethod()
.AllowAnyHeader());
app.UseHttpsRedirection();
app.UseMvc(routes =>
{
Expand Down
3 changes: 2 additions & 1 deletion WlihaHackEviction/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
}
},
"ConnectionStrings": {
"MySQLConnection": ""
"MySQLConnection": "",
"SQLConnection": "Server=ijfods31344.database.windows.net;Database=wliha;User ID=wliha;Password=***REMOVED***;MultipleActiveResultSets=true"
},
"AllowedHosts": "*",
"KeyVaultName": "neighborevictions"
Expand Down

0 comments on commit 561210e

Please sign in to comment.