mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Remove trailing slash of paste creation endpoint
This commit is contained in:
parent
215315af14
commit
bb196a1c6a
@ -12,7 +12,7 @@ import (
|
|||||||
// InitializePastesController initializes the '/v1/pastes/*' controller
|
// InitializePastesController initializes the '/v1/pastes/*' controller
|
||||||
func InitializePastesController(group *router.Group) {
|
func InitializePastesController(group *router.Group) {
|
||||||
group.GET("/{id}", v1GetPaste)
|
group.GET("/{id}", v1GetPaste)
|
||||||
group.POST("/", v1PostPaste)
|
group.POST("", v1PostPaste)
|
||||||
group.DELETE("/{id}", v1DeletePaste)
|
group.DELETE("/{id}", v1DeletePaste)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user