| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
We omitted to include this earlier and it is needed for the create
handler, which creates the new entity in the database and then redirects
to the view handler which will show the organisation page.
|
|
|
|
| |
We only want "/" to match the home route; this comment explains that.
|
| |
|
|
|
|
|
|
| |
This is a straight forward wrapper around INSERT.
Also added a clientError into a new helpers.go file.
|
|
|
|
|
| |
Added a partial html for the navigation bar. So far it just has a link
to "Home" on it.
|
|
|
|
|
|
| |
There is also some basic CSS here.
Also introduced a proper structured logger.
|
| |
|
| |
|
|
Started to separate out funtionality: added an application struct and
several methods (routes(), home() and a notFound() error).
At the moment, the application struct does not carry any other
configuration objects or a database pool connection - it is just there
to get the routing going.
|