unstable: initial tags
This commit is contained in:
parent
2e71b60248
commit
b3b62af3a4
28 changed files with 503 additions and 91 deletions
|
|
@ -89,7 +89,7 @@ var prefixRoutes = []route{
|
|||
|
||||
var routes = append(static, []route{
|
||||
{
|
||||
"/search",
|
||||
core.SearchURI,
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
searchHandler)),
|
||||
|
|
@ -122,6 +122,27 @@ var routes = append(static, []route{
|
|||
userTotpHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
"/tags",
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
tagsHandler)),
|
||||
[]string{"GET"},
|
||||
},
|
||||
{
|
||||
"/tags/{tag:[a-zA-Z0-9]+}/edit",
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
tagsEditHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
"/tags/{tag:[a-zA-Z0-9]+}/del",
|
||||
jwtHandler(
|
||||
authHandler(
|
||||
tagsDelHandler)),
|
||||
[]string{"GET", "POST"},
|
||||
},
|
||||
{
|
||||
core.LogoutURI,
|
||||
jwtHandler(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue