Major code cleanup

This commit is contained in:
Jacob Gunther
2023-02-24 09:48:40 -06:00
parent 94f42a4af5
commit 4d926e5976
3 changed files with 169 additions and 268 deletions

View File

@@ -252,3 +252,7 @@ func GetInstanceID() (uint16, error) {
return 0, nil
}
func ParseUserParam(ctx *fiber.Ctx) string {
return strings.Split(ctx.Params("user"), ".")[0]
}