feat: add files
This commit is contained in:
@@ -123,7 +123,10 @@ func Serve(cmd *cobra.Command, args []string) error {
|
|||||||
|
|
||||||
file, err := fabfile.Find(filepath.Join(svc.App.DistAdmin, f))
|
file, err := fabfile.Find(filepath.Join(svc.App.DistAdmin, f))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ctx.SendStatus(fiber.StatusNotFound)
|
file, err = fabfile.Find(filepath.Join(svc.App.DistAdmin, "index.html"))
|
||||||
|
if err != nil {
|
||||||
|
return ctx.SendStatus(fiber.StatusNotFound)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ctx.SendFile(file)
|
return ctx.SendFile(file)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user