Fix extra whitespace in slot slugs (#938)

* Fix extra whitespace in slot slugs

* Add slug route parameter to slot and user pages
This commit is contained in:
Josh 2023-10-29 18:16:36 -05:00 committed by GitHub
parent cac91ff2e1
commit 3c76dfa434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ using Microsoft.EntityFrameworkCore;
namespace LBPUnion.ProjectLighthouse.Servers.Website.Controllers;
[ApiController]
[Route("user/{id:int}")]
[Route("user/{id:int}/{slug?}")]
public class UserPageController : ControllerBase
{
private readonly DatabaseContext database;