mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 02:33:31 -06:00
[feature] Implement /api/v2/instance endpoint (#1409)
* interim: start adding /api/v2/instance * finish up
This commit is contained in:
parent
4ee4cd2da1
commit
382512a5a6
109 changed files with 1660 additions and 944 deletions
|
|
@ -99,7 +99,7 @@ var Start action.GTSAction = func(ctx context.Context) error {
|
|||
|
||||
// attach global no route / 404 handler to the router
|
||||
router.AttachNoRouteHandler(func(c *gin.Context) {
|
||||
apiutil.ErrorHandler(c, gtserror.NewErrorNotFound(errors.New(http.StatusText(http.StatusNotFound))), processor.InstanceGet)
|
||||
apiutil.ErrorHandler(c, gtserror.NewErrorNotFound(errors.New(http.StatusText(http.StatusNotFound))), processor.InstanceGetV1)
|
||||
})
|
||||
|
||||
// build router modules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue