mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-19 12:53:01 -06:00
linting
This commit is contained in:
parent
3640267014
commit
6b22779f3b
2 changed files with 5 additions and 5 deletions
|
|
@ -46,7 +46,7 @@ type Router interface {
|
|||
AttachMiddleware(handler gin.HandlerFunc)
|
||||
// Attach 404 NoRoute handler
|
||||
AttachNoRouteHandler(handler gin.HandlerFunc)
|
||||
// Add Gin StaticFile handler
|
||||
// Add Gin StaticFile handler
|
||||
AttachStaticFS(relativePath string, fs http.FileSystem)
|
||||
// Start the router
|
||||
Start()
|
||||
|
|
@ -63,9 +63,9 @@ type router struct {
|
|||
certManager *autocert.Manager
|
||||
}
|
||||
|
||||
// Add Gin StaticFile handler
|
||||
// Add Gin StaticFile handler
|
||||
func (r *router) AttachStaticFS(relativePath string, fs http.FileSystem) {
|
||||
r.engine.StaticFS(relativePath, fs);
|
||||
r.engine.StaticFS(relativePath, fs)
|
||||
}
|
||||
|
||||
// Start starts the router nicely.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue