Manual Reference Source Test
import IController from 'pop-api/src/controllers/IController.js'
public interface | source

IController

Direct Subclass:

IContentController

Indirect Subclass:

BaseContentController

Direct Implemented:

Indirect Implemented:

Interface for the route controllers.

Test:

Method Summary

Public Methods
public abstract

registerRoutes(router: Object, PopApi: PopApi): undefined

Default method to register the routes.

Public Methods

public abstract registerRoutes(router: Object, PopApi: PopApi): undefined source

Default method to register the routes.

Params:

NameTypeAttributeDescription
router Object
  • nullable: false

The router to register the routes to.

PopApi PopApi
  • nullable: false

The PopApi instance.

Return:

undefined

Throw:

Error

Using default method: 'registerRoutes'

Test: