Skip to content

Commit

Permalink
Consistency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Apr 19, 2024
1 parent 55e3d2e commit 3ea046d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pokerogue-server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ func main() {
}

func backend(ctx *fasthttp.RequestCtx) {
path := string(ctx.Path())

if strings.HasPrefix(path, "/api") {
switch path {
if strings.HasPrefix(string(ctx.Path()), "/api") {
switch string(ctx.Path()) {
case "/api/account/info":
api.HandleAccountInfo(ctx)
case "/api/account/register":
Expand Down

0 comments on commit 3ea046d

Please sign in to comment.