mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 01:57:29 -06:00
chunking away at it
This commit is contained in:
parent
0a244be523
commit
f58f77bf1f
23 changed files with 860 additions and 394 deletions
|
|
@ -36,7 +36,7 @@ import (
|
|||
// Router provides the REST interface for gotosocial, using gin.
|
||||
type Router interface {
|
||||
// Attach a gin handler to the router with the given method and path
|
||||
AttachHandler(method string, path string, handler gin.HandlerFunc)
|
||||
AttachHandler(method string, path string, f gin.HandlerFunc)
|
||||
// Attach a gin middleware to the router that will be used globally
|
||||
AttachMiddleware(handler gin.HandlerFunc)
|
||||
// Start the router
|
||||
|
|
@ -59,6 +59,8 @@ func (r *router) Start() {
|
|||
r.logger.Fatalf("listen: %s", err)
|
||||
}
|
||||
}()
|
||||
// c := &gin.Context{}
|
||||
// c.Get()
|
||||
}
|
||||
|
||||
// Stop shuts down the router nicely
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue