chore(api tokens): remove updated date from tokens as it can't be updated anyway
This commit is contained in:
@ -121,7 +121,7 @@ func CollectRoutesForAPITokenUsage(route echo.Route) {
|
||||
// @tags api
|
||||
// @Produce json
|
||||
// @Security JWTKeyAuth
|
||||
// @Success 200 {array} routes.APITokenRoute "The list of all routes."
|
||||
// @Success 200 {array} models.APITokenRoute "The list of all routes."
|
||||
// @Router /routes [get]
|
||||
func GetAvailableAPIRoutesForToken(c echo.Context) error {
|
||||
return c.JSON(http.StatusOK, apiTokenRoutes)
|
||||
|
@ -51,8 +51,6 @@ type APIToken struct {
|
||||
|
||||
// A timestamp when this api key was created. You cannot change this value.
|
||||
Created time.Time `xorm:"created not null" json:"created"`
|
||||
// A timestamp when this api key was last updated. You cannot change this value.
|
||||
Updated time.Time `xorm:"updated not null" json:"updated"`
|
||||
|
||||
OwnerID int64 `xorm:"bigint not null" json:"-"`
|
||||
|
||||
|
Reference in New Issue
Block a user