mirror of
https://github.com/Luzifer/ots.git
synced 2025-07-20 21:28:49 -04:00
Add Tiltfile for local development
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
51313d02aa
commit
8cc6f23b04
3 changed files with 58 additions and 0 deletions
1
api.go
1
api.go
|
@ -52,6 +52,7 @@ func (a apiServer) Register(r *mux.Router) {
|
|||
r.HandleFunc("/get/{id}", a.handleRead)
|
||||
r.HandleFunc("/isWritable", func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusNoContent) })
|
||||
r.HandleFunc("/settings", a.handleSettings).Methods(http.MethodGet)
|
||||
r.HandleFunc("/healthz", func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusOK) })
|
||||
}
|
||||
|
||||
func (a apiServer) handleCreate(res http.ResponseWriter, r *http.Request) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue