2021-10-08 12:39:31 +00:00
|
|
|
// SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
|
|
|
|
//
|
2021-02-09 11:53:33 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-02-04 16:21:21 +00:00
|
|
|
// +build dev
|
|
|
|
|
|
|
|
package web
|
|
|
|
|
2021-02-22 14:26:51 +00:00
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
"path/filepath"
|
|
|
|
|
|
|
|
"go.mindeco.de/goutils"
|
|
|
|
)
|
|
|
|
|
2021-02-08 11:57:14 +00:00
|
|
|
const Production = false
|
2021-02-22 14:26:51 +00:00
|
|
|
|
|
|
|
// absolute path of where this package is located
|
2022-11-07 09:18:13 +00:00
|
|
|
var pkgDir = goutils.MustLocatePackage("github.com/ssbc/go-ssb-room/v2/web")
|
2021-02-22 14:26:51 +00:00
|
|
|
|
|
|
|
var Templates = http.Dir(filepath.Join(pkgDir, "templates"))
|
|
|
|
|
|
|
|
var Assets = http.Dir(filepath.Join(pkgDir, "assets"))
|