Remove trailing slash of paste creation endpoint

This commit is contained in:
Lukas SP 2020-08-23 21:02:16 +02:00
parent 215315af14
commit bb196a1c6a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import (
// InitializePastesController initializes the '/v1/pastes/*' controller
func InitializePastesController(group *router.Group) {
group.GET("/{id}", v1GetPaste)
group.POST("/", v1PostPaste)
group.POST("", v1PostPaste)
group.DELETE("/{id}", v1DeletePaste)
}