Have got session creation working
This commit is contained in:
parent
18f9f49c0a
commit
036b683eab
10 changed files with 438 additions and 3 deletions
|
|
@ -111,6 +111,7 @@ Starting weiro without any arguments will start the server.
|
|||
lh := handlers.LoginHandler{Config: cfg, AuthService: svcs.Auth}
|
||||
ph := handlers.PostsHandler{PostService: svcs.Posts, CategoryService: svcs.Categories}
|
||||
uh := handlers.UploadsHandler{UploadsService: svcs.Uploads}
|
||||
ieh := handlers.ImageEditHandlers{ImageEditService: svcs.ImageEdit}
|
||||
ssh := handlers.SiteSettingsHandler{SiteService: svcs.Sites}
|
||||
ch := handlers.CategoriesHandler{CategoryService: svcs.Categories}
|
||||
pgh := handlers.PagesHandler{PageService: svcs.Pages}
|
||||
|
|
@ -151,6 +152,9 @@ Starting weiro without any arguments will start the server.
|
|||
siteGroup.Delete("/uploads/:uploadID", uh.Delete)
|
||||
siteGroup.Get("/uploads/:uploadID/edit", uh.Edit)
|
||||
|
||||
siteGroup.Post("/imageedit", ieh.Create)
|
||||
siteGroup.Get("/imageedit/:sessionID/preview/:versionID", ieh.Preview)
|
||||
|
||||
siteGroup.Get("/settings", ssh.General)
|
||||
siteGroup.Post("/settings", ssh.UpdateGeneral)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue