1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-23 00:37:48 +02:00

issue#16 web-app account signup

Account signup works with validation and translations.
This commit is contained in:
Lee Brown
2019-07-31 13:47:30 -08:00
parent a225f9f24e
commit 227af02f31
50 changed files with 1976 additions and 427 deletions

View File

@ -15,7 +15,7 @@ import (
)
// API returns a handler for a set of routes.
func API(shutdown chan os.Signal, log *log.Logger, masterDB *sqlx.DB, redis *redis.Client, authenticator *auth.Authenticator, globalMids ...web.Middleware) http.Handler {
func API(shutdown chan os.Signal, log *log.Logger, env web.Env, masterDB *sqlx.DB, redis *redis.Client, authenticator *auth.Authenticator, globalMids ...web.Middleware) http.Handler {
// Define base middlewares applied to all requests.
middlewares := []web.Middleware{
@ -28,7 +28,7 @@ func API(shutdown chan os.Signal, log *log.Logger, masterDB *sqlx.DB, redis *red
}
// Construct the web.App which holds all routes as well as common Middleware.
app := web.NewApp(shutdown, log, middlewares...)
app := web.NewApp(shutdown, log, env, middlewares...)
// Register health check endpoint. This route is not authenticated.
check := Check{