Home Reference Source
import CanonicalPostURL from '~/models/Request/CanonicalPostURL.js'
public class | source

CanonicalPostURL

Extends:

Request → CanonicalPostURL

Obtains canonical URL of a post

Constructor Summary

Public Constructor
public

Pass the post object or the post ID

Method Summary

Public Methods
public

format()

Inherited Summary

From class Request
protected
public

cancel()

Cancels the request.

public

format(data: Object): Object

Formats the request object and returns an object of Request<T>'s T.

public

async run(o: Object): Promise

Performs the request

Public Constructors

public constructor(post: number | Post) source

Pass the post object or the post ID

Override:

Request#constructor

Params:

NameTypeAttributeDescription
post number | Post

Public Methods

public format() source

Formats the request object and returns an object of Request<T>'s T.

Override:

Request#format