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

Fix chi routing #2

Merged
merged 1 commit into from
Aug 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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