Page MenuHomeSealhub

redirects.ts
No OneTemporary

redirects.ts

import { Collection, FieldTypes, Policies } from "sealious";
import { CRUDRoles, Roles } from "../policy-types/roles.js";
export default class Redirects extends Collection {
fields = {
from_url: new FieldTypes.Text().setRequired(true),
to_url: new FieldTypes.Text().setRequired(true),
type: new FieldTypes.Enum(["301", "302"]).setRequired(true),
};
policies = CRUDRoles(["quick-filters"], { show: new Policies.Public() });
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Dec 24, 14:06 (50 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556471
Default Alt Text
redirects.ts (436 B)

Event Timeline