restructure the code, learning from spa-example-app
This commit is contained in:
12
src/Session.elm
Normal file
12
src/Session.elm
Normal file
@@ -0,0 +1,12 @@
|
||||
module Session exposing (..)
|
||||
|
||||
import Browser.Navigation as Nav
|
||||
|
||||
type User
|
||||
= Player Int
|
||||
| Admin
|
||||
|
||||
type Model
|
||||
= LoggedIn Nav.Key User
|
||||
| LoggedOut Nav.Key
|
||||
|
||||
Reference in New Issue
Block a user