mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 16:04:11 +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("");
|
||
|
}
|