mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
33 lines
900 B
JavaScript
33 lines
900 B
JavaScript
export default function () {
|
|
this.route("chat", function () {
|
|
this.route("channel", { path: "/c/:channelTitle/:channelId" }, function () {
|
|
this.route("near-message", { path: "/:messageId" });
|
|
this.route("threads", { path: "/t" });
|
|
this.route("thread", { path: "/t/:threadId" }, function () {
|
|
this.route("near-message", { path: "/:messageId" });
|
|
});
|
|
});
|
|
|
|
this.route("direct-messages");
|
|
this.route("channels");
|
|
this.route("threads");
|
|
|
|
this.route(
|
|
"channel.info",
|
|
{ path: "/c/:channelTitle/:channelId/info" },
|
|
function () {
|
|
this.route("members");
|
|
this.route("settings");
|
|
}
|
|
);
|
|
|
|
this.route("browse", function () {
|
|
this.route("all");
|
|
this.route("closed");
|
|
this.route("open");
|
|
this.route("archived");
|
|
});
|
|
this.route("message", { path: "/message/:messageId" });
|
|
});
|
|
}
|