mirror of
https://github.com/discourse/discourse.git
synced 2024-12-29 06:03:57 +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("");
|
||
|
}
|