1
0
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:
Lukas SP 2020-08-23 21:02:16 +02:00
parent 215315af14
commit bb196a1c6a

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)
}