mirror of
https://github.com/techgarage-ir/MTWireGuard.git
synced 2025-08-28 13:58:09 +02:00
Fix update/delete modals JS functions not working
This commit is contained in:
parent
42b17455ca
commit
2df549cfc0
12 changed files with 107 additions and 107 deletions
15
Program.cs
15
Program.cs
|
@ -9,20 +9,6 @@ using MTWireGuard.Repositories;
|
|||
using MTWireGuard.Services;
|
||||
using System.Diagnostics;
|
||||
|
||||
#region Error Handling
|
||||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler);
|
||||
|
||||
static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
|
||||
{
|
||||
Exception ex = e.ExceptionObject as Exception;
|
||||
if (e.IsTerminating)
|
||||
Debug.WriteLine($"[+] {ex.Message}");
|
||||
else
|
||||
Debug.WriteLine($"[-] {ex.Message}");
|
||||
throw ex;
|
||||
}
|
||||
#endregion
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
using DBContext context = new();
|
||||
|
||||
|
@ -106,6 +92,7 @@ else
|
|||
});
|
||||
|
||||
app.UseDependencyCheck();
|
||||
//app.UseExceptionHandling();
|
||||
//app.UseAntiForgery();
|
||||
|
||||
app.UseRouting();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue