1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-06 18:33:38 +02:00

Add router

This commit is contained in:
Arne Schlüter 2018-04-18 08:52:12 +02:00
commit 28d0c134d5
7 changed files with 79 additions and 11 deletions

View file

@ -0,0 +1,14 @@
(ns airsonic-ui.routes
(:require [bide.core :as r]))
;; routing is started in core.cljs
(def default ::login)
(def router
(r/router [["/" ::login]
["/hello" ::main]]))
;; routes that need valid credentials
(def protected #{::main})