Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ef4aabe

Browse files
committed
use functions
1 parent 81d665b commit ef4aabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎http/web/router.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ func Init(port int) {
3535
App.Post("/api/v1/blobs/switch", v1.SwitchBlob)
3636
App.Post("/api/v1/daily", v1.RedeemDailyGift)
3737
App.Get("/api/v1/ping", v1.Ping)
38-
App.Get("/api/v1/rooms", func(ctx*fiber.Ctx) {}) // TODO
39-
App.Get("/api/v1/rooms/:id", func(ctx*fiber.Ctx) {}) // TODO
38+
App.Get("/api/v1/rooms", v1.GetRooms)
39+
App.Get("/api/v1/rooms/:id", v1.GetRoom)
4040
App.Get("/api/v1/rooms/:id/players", v1.GetPlayers)
4141

4242
fmt.Printf("Webserver listening on port %d\n", port)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /