From 4d70f021a3d2991ebd1de1089bf02922a9e0a5a9 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Fri, 14 Oct 2016 22:55:17 +0100 Subject: [PATCH] Use updated fibre library --- web/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/web.go b/web/web.go index 3d0f75d3..bfd03d6e 100644 --- a/web/web.go +++ b/web/web.go @@ -64,7 +64,7 @@ func Setup(opts *cnf.Options) (err error) { s.Use(mw.Auth(&mw.AuthOpts{ User: []byte(opts.Auth.User), Pass: []byte(opts.Auth.Pass), - }).Path("/import", "/export")) + }).PathIs("/import", "/export")) // Setup special authentication @@ -75,7 +75,6 @@ func Setup(opts *cnf.Options) (err error) { c.Set("DB", d["db"]) return nil }, - }).Path("/rpc", "/sql", "/key")) // Setup newrelic integration @@ -83,6 +82,7 @@ func Setup(opts *cnf.Options) (err error) { Name: []byte("Surreal"), License: []byte(opts.Logging.Newrelic), })) + }).PathIs("/rpc", "/sql").PathBegsWith("/key")) // Run the server