Skip to content

Commit

Permalink
Merge pull request #2 from nuts-foundation/vue
Browse files Browse the repository at this point in the history
Use vue as front end framework
  • Loading branch information
stevenvegt authored Apr 9, 2021
2 parents e5985e0 + 31af70d commit a1ebae9
Show file tree
Hide file tree
Showing 12 changed files with 5,092 additions and 90 deletions.
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'plugin:vue/essential',
'standard'
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module'
},
plugins: [
'vue'
],
rules: {
}
}
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ func main() {

assetHandler := http.FileServer(getFileSystem(useFS))
e.GET("/*", echo.WrapHandler(assetHandler))

e.Logger.Fatal(e.Start(":1323"))
e.GET("/api/customers", func(ctx echo.Context) error {
customers := []map[string]string{
{"name":"Zorginstelling de notenboom", "did":"did:nuts:123"},
{"name":"Verpleehuis de nootjes", "did":"did:nuts:456"},
}
return ctx.JSON(200, customers)
})

e.Logger.Fatal(e.Start(":1303"))
}
Loading

0 comments on commit a1ebae9

Please sign in to comment.