Skip to content

Instantly share code, notes, and snippets.

@hiranya911
Created June 9, 2019 04:38
Show Gist options
  • Save hiranya911/5734a99360e6fa5b59cdf722bdf74cbb to your computer and use it in GitHub Desktop.
Save hiranya911/5734a99360e6fa5b59cdf722bdf74cbb to your computer and use it in GitHub Desktop.
using FirebaseAdmin;
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Initialize the Firebase Admin SDK
FirebaseApp.Create();
services.AddMvc();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseMvc();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment