Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
fix routes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan authored and Stefan Prodan committed Aug 17, 2017
1 parent cb9875d commit 1314564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ func (s *HttpServer) Start(version string) {
r.Route("/status", func(r chi.Router) {
r.Use(statusCtx(s.Stats))
r.Get("/", getStatus)
r.Get("/:planID", getPlanStatus)
r.Get("/{planID}", getPlanStatus)
})

r.Route("/backup", func(r chi.Router) {
r.Use(configCtx(*s.Config))
r.Post("/:planID", postBackup)
r.Post("/{planID}", postBackup)
})

FileServer(r,"/storage", http.Dir(s.Config.StoragePath))
Expand Down

0 comments on commit 1314564

Please sign in to comment.