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 f27a96e

Browse files
committed
add routes
1 parent ed7bb5a commit f27a96e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎http/web/router.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ func Init(port int) {
3434
App.Get("/api/v1/users/:user", v1.GetUser)
3535
App.Post("/api/v1/blobs/switch", v1.SwitchBlob)
3636
App.Post("/api/v1/daily", v1.RedeemDailyGift)
37+
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
40+
App.Get("/api/v1/rooms/:id/players", v1.GetPlayers)
3741

3842
fmt.Printf("Webserver listening on port %d\n", port)
3943
err := App.Listen(port)

0 commit comments

Comments
(0)

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