forked from mirrors/homebox
fix: assert/asserts (#521)
This commit is contained in:
parent
c5ae6b17f9
commit
02ce52dbe3
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ func (a *app) mountRoutes(r *chi.Mux, chain *errchain.ErrChain, repos *repo.AllR
|
|||
r.Put(v1Base("/items/{id}/maintenance/{entry_id}"), chain.ToHandlerFunc(v1Ctrl.HandleMaintenanceEntryUpdate(), userMW...))
|
||||
r.Delete(v1Base("/items/{id}/maintenance/{entry_id}"), chain.ToHandlerFunc(v1Ctrl.HandleMaintenanceEntryDelete(), userMW...))
|
||||
|
||||
r.Get(v1Base("/asset/{id}"), chain.ToHandlerFunc(v1Ctrl.HandleAssetGet(), userMW...))
|
||||
r.Get(v1Base("/assets/{id}"), chain.ToHandlerFunc(v1Ctrl.HandleAssetGet(), userMW...))
|
||||
|
||||
// Notifiers
|
||||
r.Get(v1Base("/notifiers"), chain.ToHandlerFunc(v1Ctrl.HandleGetUserNotifiers(), userMW...))
|
||||
|
|
|
@ -5,7 +5,7 @@ import { PaginationResult } from "../types/non-generated";
|
|||
export class AssetsApi extends BaseAPI {
|
||||
async get(id: string, page = 1, pageSize = 50) {
|
||||
return await this.http.get<PaginationResult<ItemSummary>>({
|
||||
url: route(`/asset/${id}`, { page, pageSize }),
|
||||
url: route(`/assets/${id}`, { page, pageSize }),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue