github.com/blend/go-sdk@v1.20240719.1/web/controller.go (about)

     1  /*
     2  
     3  Copyright (c) 2024 - Present. Blend Labs, Inc. All rights reserved
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file.
     5  
     6  */
     7  
     8  package web
     9  
    10  // Controller is an interface for controller objects.
    11  /*
    12  The primary concern of a controller is to register routes that correspond to the
    13  actions the controller implements.
    14  
    15  Routes are registered in order, and cannot collide with eachother.
    16  
    17  Controllers should also register any views or additional resources they need
    18  at the time of registration.
    19  */
    20  type Controller interface {
    21  	Register(app *App)
    22  }