~ritho/rweb

2d669607b38441e7eabf34fe24b45d5fb86eac9b — Ritho 3 months ago 545315c
Add the packages asset directory.

Signed-off-by: Ritho <palvarez@ritho.net>
3 files changed, 4 insertions(+), 1 deletions(-)

A assets/packages/.gitignore
M conf/web.yaml.in
M internal/controller/controller.go
A assets/packages/.gitignore => assets/packages/.gitignore +2 -0
@@ 0,0 1,2 @@
*
!.gitignore

M conf/web.yaml.in => conf/web.yaml.in +1 -1
@@ 53,7 53,7 @@ site:
    description: |
      The rweb project has the Go code for this website.
    section: "Personal"
    package: "%ASSETS_DIR%/packages/rweb-0.0.1.deb"
    package: "/packages/rweb-0.0.1.deb"
  - name: "kubernetes"
    url: "https://github.com/i02sopop/kubernetes"
    short: "Production-Grade Container Scheduling and Management."

M internal/controller/controller.go => internal/controller/controller.go +1 -0
@@ 64,6 64,7 @@ func (c *Controller) endpoints(e *echo.Echo) {
	e.GET("/img/:name", c.img)
	e.Static("/js", filepath.Join(c.cfg.Assets, "js"))
	e.Static("/css", filepath.Join(c.cfg.Assets, "css"))
	e.Static("/packages", filepath.Join(c.cfg.Assets, "packages"))
	e.File("/favicon.ico", filepath.Join(c.cfg.Assets, "images", "favicon.ico"))
}