add working signup + login
This commit is contained in:
parent
bc85b7c340
commit
d8cb8c8fa8
27 changed files with 600 additions and 39 deletions
|
@ -34,7 +34,7 @@ func New(app *app.App) *Frontend {
|
|||
App: app,
|
||||
}
|
||||
|
||||
if app.Config.Core.Dev {
|
||||
if app.AppConfig.Core.Dev {
|
||||
glue, err := vueglue.NewVueGlue(&vueglue.ViteConfig{
|
||||
Environment: "development",
|
||||
AssetsPath: "frontend",
|
||||
|
@ -100,7 +100,7 @@ func (app *Frontend) ServeFrontend(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
func (app *Frontend) ServeStaticAssets(w http.ResponseWriter, r *http.Request) {
|
||||
if app.Config.Core.Dev {
|
||||
if app.AppConfig.Core.Dev {
|
||||
// TODO: this is unsafe
|
||||
path := filepath.Join("web/frontend/assets/", chi.URLParam(r, "*"))
|
||||
http.ServeFile(w, r, path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue