unstable: initial tags
This commit is contained in:
parent
2e71b60248
commit
b3b62af3a4
28 changed files with 503 additions and 91 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue