parent
a4644e92b0
commit
5fe5ed5239
@ -0,0 +1,12 @@
|
||||
(ns wanijo.attribute.routes
|
||||
(:require [compojure.core :refer [defroutes GET POST]]
|
||||
[ring.util.response :as resp]
|
||||
[wanijo.framework.form :as form]
|
||||
[wanijo.framework.routing :refer [register]]))
|
||||
|
||||
(defn new! [req])
|
||||
|
||||
(register :attribute-new "/attribute/new")
|
||||
|
||||
(defroutes routes
|
||||
(POST "/attribute/new" [] new!))
|
@ -1,2 +1,10 @@
|
||||
(ns wanijo.framework.time
|
||||
(:require [clj-time.core :as t]))
|
||||
(:require [clj-time.format :as format]))
|
||||
|
||||
(defn prettify-dt [date-str]
|
||||
(->>
|
||||
date-str
|
||||
(format/parse
|
||||
(format/formatters :basic-date-time))
|
||||
(format/unparse
|
||||
(format/formatter "yyyy-MM-dd HH:mm:ss"))))
|
||||
|
Loading…
Reference in new issue