unstable: initial tags

This commit is contained in:
ston1th 2019-08-20 23:57:43 +02:00
commit b3b62af3a4
28 changed files with 503 additions and 91 deletions

View file

@ -7,12 +7,16 @@ const (
TotpURI = "/totp"
LoginURI = "/login"
LogoutURI = "/logout"
SearchURI = "/search"
TagsURI = "/tags"
UserURI = "/user"
RawPrefix = "/raw"
IndexPrefix = "/index"
UploadPrefix = "/upload"
NewPrefix = "/new"
MovePrefix = "/move"
TagsPrefix = "/tags"
DeletePrefix = "/delete"
Favicon = "/favicon.ico"

View file

@ -12,14 +12,19 @@ type User struct {
}
type Result struct {
ID string
Path string
Keyword string
HTML template.HTML
ID string
Path string
Tags string
HTML template.HTML
}
type Results []Result
type Tag struct {
Name string
Regex string
}
type Path struct {
Name string
Abs string