Added more specific readme's + removed obsolete code

This commit is contained in:
2024-09-26 10:50:13 +02:00
parent 27088f8217
commit 0c3501fc68
4 changed files with 100 additions and 16 deletions

View File

@@ -28,3 +28,14 @@ This module contains some useful endpoints for user login / register management.
builder.Services.AddHopFrame<DatabaseContext>();
```
# Endpoints
By default, the module provides a controller for handling authentication based requests by the user.
You can explore the contoller by the build in swagger site from ASP .NET.
## Disable the Endpoints
If you don't want to include these endpoints you need to comment out the AddHopFrame line and only add the Auth middleware:
```csharp
builder.Services.AddDbContext<DatabaseContext>();
//builder.Services.AddHopFrame<DatabaseContext>();
services.AddHopFrameAuthentication<TDbContext>();
```