mirror of
https://github.com/discourse/discourse.git
synced 2024-12-22 18:44:01 +08:00
9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
|
import getUrl from "discourse-common/lib/get-url";
|
||
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
||
|
|
||
|
registerRawHelper("base-path", basePath);
|
||
|
|
||
|
export default function basePath() {
|
||
|
return getUrl("");
|
||
|
}
|