mirror of
https://github.com/bumi/lntip
synced 2025-06-16 17:55:35 +00:00
Formatting
This commit is contained in:
parent
37ebaf3834
commit
9afa340725
3
lnme.go
3
lnme.go
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"github.com/GeertJohan/go.rice"
|
"github.com/GeertJohan/go.rice"
|
||||||
"github.com/bumi/lntip/ln"
|
"github.com/bumi/lnme/ln"
|
||||||
"github.com/didip/tollbooth/v6"
|
"github.com/didip/tollbooth/v6"
|
||||||
"github.com/didip/tollbooth/v6/limiter"
|
"github.com/didip/tollbooth/v6/limiter"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
@ -68,7 +68,6 @@ func main() {
|
|||||||
assetHandler := http.FileServer(rice.MustFindBox("files/assets").HTTPBox())
|
assetHandler := http.FileServer(rice.MustFindBox("files/assets").HTTPBox())
|
||||||
e.GET("/lnme/*", echo.WrapHandler(http.StripPrefix("/lnme/", assetHandler)))
|
e.GET("/lnme/*", echo.WrapHandler(http.StripPrefix("/lnme/", assetHandler)))
|
||||||
|
|
||||||
|
|
||||||
// CORS settings
|
// CORS settings
|
||||||
if !*disableCors {
|
if !*disableCors {
|
||||||
e.Use(middleware.CORS())
|
e.Use(middleware.CORS())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user