Skip to content

Commit

Permalink
Remove websocket APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jul 24, 2024
1 parent 8c9d703 commit bf1c402
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 565 deletions.
9 changes: 0 additions & 9 deletions app/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/osuAkatsuki/akatsuki-api/app/internals"
"github.com/osuAkatsuki/akatsuki-api/app/peppy"
v1 "github.com/osuAkatsuki/akatsuki-api/app/v1"
"github.com/osuAkatsuki/akatsuki-api/app/websockets"
"github.com/osuAkatsuki/akatsuki-api/common"
"gopkg.in/redis.v5"
)
Expand Down Expand Up @@ -47,9 +46,6 @@ func Start(dbO *sqlx.DB) *fhr.Router {
// token updater
go tokenUpdater(db)

// start websocket
// websockets.Start(red, db)

// start load achievements
go v1.LoadAchievementsEvery(db, time.Minute*10)

Expand Down Expand Up @@ -130,11 +126,6 @@ func Start(dbO *sqlx.DB) *fhr.Router {
r.POSTMethod("/api/v1/clans/transfer-ownership", v1.ClanTransferOwnershipPOST, common.PrivilegeWrite)
}

// Websocket API
{
r.PlainGET("/api/v1/ws", websockets.WebsocketV1Entry)
}

// in the new osu-web, the old endpoints are also in /v1 it seems. So /shrug
{
r.Peppy("/api/v1/get_user", peppy.GetUser)
Expand Down
18 changes: 0 additions & 18 deletions app/websockets/entry.go

This file was deleted.

101 changes: 0 additions & 101 deletions app/websockets/identify.go

This file was deleted.

125 changes: 0 additions & 125 deletions app/websockets/main_handler.go

This file was deleted.

58 changes: 0 additions & 58 deletions app/websockets/multi.go

This file was deleted.

31 changes: 0 additions & 31 deletions app/websockets/restricted_visibility.go

This file was deleted.

Loading

0 comments on commit bf1c402

Please sign in to comment.