admin: redesign home page
This commit is contained in:
parent
4f237677e2
commit
cb97af2f8a
5 changed files with 143 additions and 3 deletions
|
|
@ -63,6 +63,9 @@ func init() {
|
|||
api.Router().GET("/files/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
http.ServeFile(w, r, path.Join(fic.FilesDir, strings.TrimPrefix(r.URL.Path, "/files")))
|
||||
})
|
||||
api.Router().GET("/submissions/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
http.ServeFile(w, r, path.Join(api.TimestampCheck, strings.TrimPrefix(r.URL.Path, "/submissions")))
|
||||
})
|
||||
api.Router().GET("/vids/*_", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||
if importer, ok := sync.GlobalImporter.(sync.LocalImporter); ok {
|
||||
http.ServeFile(w, r, path.Join(importer.Base, strings.TrimPrefix(r.URL.Path, "/vids")))
|
||||
|
|
|
|||
Reference in a new issue